svelte
svelte copied to clipboard
feat : add svelte 5 codemods
🚀 Feature Proposal
Building codemods for upgrading from Svelte 4 to Svelte 5. These codemods aim to assist Svelte users in having a smooth and efficient migration experience.
Motivation
The motivation behind creating these codemods is to simplify the upgrade process for developers and ensure that applications remain optimized and secure while taking advantage of the latest features and improvements in Svelte 5.
Example
These codemods will facilitate a swift migration from Svelte 4 to Svelte 5. By running the command:
npx codemod svelte/5/migration-recipe
you can apply all the necessary transformations in one go, ensuring a seamless transition to the new version.
Before submitting the PR, please make sure you do the following
- [X] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
- [X] Prefix your PR title with
feat:
,fix:
,chore:
, ordocs:
. - [X] This message body should clearly illustrate what problems it solves.
- [ ] Ideally, include a test that fails without this PR but passes with it.
Tests and linting
- [ ] Run the tests with
pnpm test
and lint the project withpnpm lint