Skip to content

Commit

Permalink
Forward Svelte client error (#9530)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 27, 2023
1 parent 662f06f commit 337ca50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-parrots-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/svelte': patch
---

Forwards errors if a Svelte component fails to instantiate in the client
1 change: 0 additions & 1 deletion packages/integrations/svelte/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default (element) => {
});

element.addEventListener('astro:unmount', () => component.$destroy(), { once: true });
} catch (e) {
} finally {
if (import.meta.env.DEV) finishUsingConsoleFilter();
}
Expand Down

0 comments on commit 337ca50

Please sign in to comment.