Replace CRA dependencies with Vite natively
ProprietaryAdds vite and @vitejs/plugin-react together and removes react-scripts or a scoped fork only when no script still invokes it. Regenerates npm, Yarn and pnpm locks natively; refused edits leave the manifest and lock consistent. Wrapped CRA packages are left unchanged.
org. openrewrite. react. migrate. ReplaceReactScriptsDependencyOptional
Version range of vite; defaults to ^7.0.0.
Version range of @vitejs/plugin-react; defaults to ^5.2.0.
addSvgrBoolean
Also add vite-plugin-svgr for a package whose SVG ReactComponent imports are migrated by the caller.
mod run . --recipe= org. openrewrite. react. migrate. ReplaceReactScriptsDependencyInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.