web/svelte: drop svelte:component when stripping announcer

This commit is contained in:
jj 2025-04-30 15:19:16 +00:00
parent 6b11e49d4a
commit 8b9d63fdac
No known key found for this signature in database

View File

@ -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 }