Upgrade to Vite 5
ProprietaryUpgrade vite to 5.x and the official plugins that must match it in package.json: @vitejs/plugin-react 4.x, @vitejs/plugin-react-swc 3.x, @vitejs/plugin-vue 5.x, @vitejs/plugin-legacy 5.x and @sveltejs/vite-plugin-svelte 3.x. In vite.config and vitest.config files it wraps worker.plugins in a function (MigrateVite5Config) and marks the other changes in the Vite 5 guide (FindVite5Changes). Not done by this recipe: raising engines.node, the changes that are only marked, and community plugins.
org. openrewrite. nodejs. migrate. vite. UpgradeToVite5mod run . --recipe= org. openrewrite. nodejs. migrate. vite. UpgradeToVite5Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.