Add a Vite config to Create React App projects

Proprietary

Adds a vite.config.ts or vite.config.js with the React plugin to each project that uses react-scripts, keeping the Create React App port 3000 and build output folder. Projects that already have a Vite config are left unchanged.

org.openrewrite.react.cra-to-vite.add-vite-config
mod run . --recipe=org.openrewrite.react.cra-to-vite.add-vite-config

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.