This reproduction and its report were created with AI assistance (OpenAI Codex), at the reporter's request. The commands were actually executed locally. We hope the reproducible example and control cases are useful to the maintainers; the proposed runtime explanation is offered for review, not as an assertion that a one-line patch is sufficient.
Requires Node.js with --expose-gc; tested with Node 26.8.1 on macOS 26.6.2. No Vite, SvelteKit, application code, HMR, browser extensions, or private Svelte imports are needed. svelte/compiler compiles the included files with dev: false, hmr: false.
npm install --ignore-scripts