Reading issue
sveltejs / svelte · Issue No. 18623
Bug reproduces in 5.55.6 and above, not in version 5.55.5
Seems that something inside Svelte links to the unused DOM node
client.ts
import { mount, unmount } from 'svelte';
import Root from './Root.svelte';
window.root = mount(Root, {
target: document.body,
props: {}
});
window.destroy = () => {
unmount(window.root);
window.root = undefined;
window.destroy = undefined;
};
Root.svelte
<script lang="ts">
const array = new Array(1000).fill(1);
</script>
<div class="svelte-root">
{#if array}
{#each array as item}
{item}
{/each}
{/if}
</div>
In version 5.55.6:
Svelte 5.55.6
Vite 8 + rolldown
blocking an upgrade
Relay reads this issue against the repository's contribution signals: the files it is likely to touch, how the maintainers triage work this size, and what the first contribution would exercise.
The full analysis for this issue is still being assembled. Until then, the description above and the thread on GitHub are the most reliable context.