Migration adds invalid migration task when non-keyword export
is present in the page script body
#8518
Labels
bug
Something isn't working
contributions-welcome
We're not going to implement this ourselves, but we'll consider contributions
Milestone
Describe the bug
When migrating routes using
npx svelte-migrate routes
, if a file that is being migrated contains the textexport
anywhere in the<script>
body a@migration task: Add data prop
error will be inserted. This is to be expected when it is used as a keyword, but it should not trigger if it is used for any other reason.Reproduction
The contents of
$lib/data_export.svelte
is irrelevant, and technically doesn't even need to exist to reproduce.npx svelte-migrate routes
Let me know if you want a reproduction repository. The issue seemed self-evident enough to not require one.
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: