This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
compilerOptions
property like this:
compilerOptions: {
skipLibCheck: false
},
- Do not replace
skipLibCheck
to true, because it checking all.d.ts
files