A plugin for react-app-rewired that replaces Babel and Terser with esbuild for faster builds in Create React App projects. Current version 0.0.11 is stable but young, with low community adoption. Key differentiator: minimal config integration into existing react-app-rewired setups. Compared to alternatives like CRACO or custom Webpack config, it offers an easy drop-in replacement. Release cadence is low; latest version unchanged since 2021. Not recommended for production due to missing React JSX transform auto-injection.
npm install react-app-rewired-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Overriding CRA config with react-app-rewired to use esbuild for faster development builds.
Add 'import React from 'react' at the top of every JSX file, or use esbuild's automatic JSX runtime injection via jsxFactory and jsxFragment.
Consider using CRACO with esbuild-loader directly, or migrate to Vite (which uses esbuild natively).
Check react-scripts version; for v5, you may need to patch config-overrides.js or use an alternative like CRACO.
Ensure that rewiredEsbuild() is called last in the override chain after any other config modifications.
Use onlyMinimizer: true for production to avoid CSS processing issues, or handle CSS separately.
Add 'import React from 'react' at the top of each JSX file, or enable automatic JSX runtime in esbuild options (e.g., loader: 'jsx', jsxFactory: 'React.createElement', jsxFragment: 'React.Fragment').
Run 'npm i react-app-rewired --save-dev' or 'yarn add react-app-rewired --dev'.
Use 'const rewiredEsbuild = require('react-app-rewired-esbuild');' without curly braces.Run 'npm i esbuild-loader --save-dev' or ensure your npm/yarn resolutions include it.