mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
Forward Svelte client error (#9530)
This commit is contained in:
parent
662f06fd9f
commit
337ca508bd
2 changed files with 5 additions and 1 deletions
5
.changeset/great-parrots-raise.md
Normal file
5
.changeset/great-parrots-raise.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/svelte': patch
|
||||
---
|
||||
|
||||
Forwards errors if a Svelte component fails to instantiate in the client
|
|
@ -26,7 +26,6 @@ export default (element) => {
|
|||
});
|
||||
|
||||
element.addEventListener('astro:unmount', () => component.$destroy(), { once: true });
|
||||
} catch (e) {
|
||||
} finally {
|
||||
if (import.meta.env.DEV) finishUsingConsoleFilter();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue