Skip to content

best way to save what you love

web/svelte: drop svelte:component when stripping announcer

jj8b9d63fdaca3
diff --git a/web/svelte.config.js b/web/svelte.config.js
index 2e4bc523..a5adc8a6 100644
--- a/web/svelte.config.js
+++ b/web/svelte.config.js
@@ -17,7 +17,7 @@ const config = {
markup: ({ content: code }) => {
code = code.replace(
/<div id="svelte-announcer" [\s\S]*?<\/div>/,
- '<svelte:component this={null} />'
+ '{null}'
);
return { code }