I wanted fast development workflow in create react app and Vite
seems to solve the issue.
Vite
expects react components filename to have extension jsx
which can be time consuming to do manually. I created this tool to automatically convert .js
files to .jsx
, adds all dependencies and config file.
npm i -g cra-to-vite
cra-to-vite
Or
If not installed globally use npx
npx cra-to-vite
yarn vite:start
yarn vite:build
- Adds config based on react version
- Add dev dependencies
- File conversion
- Moving html to root
- Absolute path support ( Coming soon )
Converted ~140
files in less than a minute.