3

svelte/5/migration-recipe

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This recipe is a set of codemods that will help migrate to Svelte 5.

The recipe includes the following codemods:

  • svelte/5/components-as-functions
  • svelte/5/components-as-functions-destroyfunction
  • svelte/5/components-as-functions-onfunction
  • svelte/5/is-where-scoping
  • svelte/5/server-api-changes
  • svelte/5/svelte-element-expression

Ready to contribute?

Build your own codemod and share it with the community.