How to upgrade old create-react-app app to Vite: 1


How to upgrade old create-react-app app to Vite:

1. Create an empty Vite app.
2. Use that app as a reference.

The changes:
1. Add vite.config.ts
2. Change npm scripts
3 Install Vite’s dependencies
4. Move index.html to root
5. Copy Vite’s .eslintrc
6. Change npm scripts to match Vite
7. Uninstall react-scripts

View original on X