Describe the bug
Starting in Svelte v5.5.0, when exporting from a <script module> the compiler gives an export_undef error that didn't exist in earlier versions.
We aren't able to build our apps on 5.5+ because of this.
Assuming this was introduced alongside #14315 ?
Reproduction
REPL (latest 5.9.0)
REPL (break introduced 5.5.0)
REPL (last working 5.4.0)
Check the Another.svelte file for the error.
Logs
No response
System Info
Severity
blocking an upgrade