Configuration for React-based project compilation using Vite
Pre-configured Vite with:
@adaliszk/web-compiler
- React
- Install the package
pnpm install --dev @adaliszk/react-compiler
- Configure vite for development and bundling:
import { reactConfig } from '@adaliszk/react-compiler' export default reactConfig()
- Add vite commands to your scope:
{ "scripts": { "build": "react-compiler build", "preview": "react-compiler preview", "start": "react-compiler" } }