Sveltekit Vite Preprocess Migration
This codemod updates import paths and ensures compatibility with changes in library structures. In this example, it modifies the import statement for vitePreprocess to reflect updates in the library's API.
EXAMPLE
Before
import { vitePreprocess } from '@sveltejs/kit/vite';export default {preprocess: vitePreprocess(),};
After
// svelte.config.jsimport { vitePreprocess } from '@sveltejs/vite-plugin-svelte';export default {preprocess: vitePreprocess(),};
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community