Description
Describe the bug
When a component exposes a function with export const doStuff = () => { /* code */ }
so that an outer component can invoke it, the code inside the exported function doesn't have access to the local variables anymore after reload.
Reproduction
https://svelte.dev/repl/5d2a100498f34c50ad9ce2ff2a4e3569?version=3.46.4
Logs
No response
System Info
macOS
Severity
annoyance