mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -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 });
|
element.addEventListener('astro:unmount', () => component.$destroy(), { once: true });
|
||||||
} catch (e) {
|
|
||||||
} finally {
|
} finally {
|
||||||
if (import.meta.env.DEV) finishUsingConsoleFilter();
|
if (import.meta.env.DEV) finishUsingConsoleFilter();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue