A Vite plugin for React that uses esbuild for JSX/TSX transformation and babel for React Fast Refresh in development, and esbuild exclusively in production. Current stable version is 0.1.2. It aims to provide faster builds by leveraging esbuild where possible, with a similar API to @vitejs/plugin-react. Key differentiator: esbuild-based transform for both development and production, unlike @vitejs/plugin-react which uses babel for development. Release cadence is not well-defined, as it is a relatively new plugin.
npm install vite-plugin-react-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin in vite.config.ts with a typical setup.
Update Vite to ^3.0.0 and esbuild to >=0.14.51.
Use the babel option only for development-specific plugins; for production, configure esbuild options if needed.
Check the plugin's source code or issues for list of supported options.
Do not rely on Fast Refresh in production builds.
Run `npm install vite-plugin-react-esbuild --save-dev` and ensure vite and esbuild are installed.
Use `import react from 'vite-plugin-react-esbuild'` (default import).
Run `npm install esbuild@>=0.14.51 --save-dev`.