0
Fork 0
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:
Bjorn Lu 2023-12-28 00:35:36 +07:00 committed by GitHub
parent 662f06fd9f
commit 337ca508bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/svelte': patch
---
Forwards errors if a Svelte component fails to instantiate in the client

View file

@ -26,7 +26,6 @@ export default (element) => {
});
element.addEventListener('astro:unmount', () => component.$destroy(), { once: true });
} catch (e) {
} finally {
if (import.meta.env.DEV) finishUsingConsoleFilter();
}