svelte memory leak repro
- Run
pnpm i then pnpm build
- Serve the build output with
pnpx serve dist
- Preview the served application, open Chrome developer tools and navigate to the Memory tab.
- Take a heap snapshot before doing anything.
- Click the toggle button on the left of the app several times to simulate navigation (changing between components)
- Take a new heap snapshot
- Observe the memory usage increase that doesn't go away over time.