-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
sv migrate produces invalid javascript when migrating the following svelte 4 code to svelte 5.
Input Svelte4:
<script>
let a, b;
export { a }
</script>Generated Svelte5:
<script>
let
let { a } = $props();, b;
</script>It works fine if the svelte4 version defines both variables as let a; let b; or when both are exported let a, b; export { a, b }.
Reproduction
Logs
No response
System Info
Svelte PlaygroundSeverity
annoyance