svelte-migrate
v1.10.2
Published
A CLI for migrating Svelte(Kit) codebases
Maintainers
Readme
svelte-migrate
A CLI for migrating Svelte(Kit) codebases.
Run it directly using:
npx sv migrateYou can also specify a migration directly via the CLI:
npx sv migrate [migration]Migrations
| Migration | From | To | Guide |
| ------------------- | --------------------- | --------------------- | --------------------------------------------------------------- |
| app-state | $app/stores | $app/state | #13140 |
| svelte-5 | Svelte 4 | Svelte 5 | Website |
| self-closing-tags | Svelte 4 | Svelte 4 | #12128 |
| svelte-4 | Svelte 3 | Svelte 4 | Website |
| sveltekit-2 | SvelteKit 1.0 | SvelteKit 2.0 | Website |
| package | @sveltejs/package@1 | @sveltejs/package@2 | #8922 |
| routes | SvelteKit pre-1.0 | SvelteKit 1.0 | #5774 |
Some migrations may annotate your codebase with tasks for completion that you can find by searching for @migration.
