Svelte · Senior · Question 44 of 75
How do you migrate a project to SvelteKit 3 or a codebase to Svelte 5 syntax?
- ✓Correct answer: With the
sv migratecommand (e.g.npx sv migrate sveltekit-3orsvelte-5), after updating to the latest previous major - 2Only manually
- 3By reinstalling node_modules
Explanation
Upgrading to the last 2.x first gives targeted deprecation warnings before the breaking changes.