Laravel Mix extension to replace babel-loader with esbuild-loader, significantly speeding up JavaScript/TypeScript compilation. Current stable version is 1.1.0. It adds an `esbuild()` method to your Mix pipeline with presets for React, TypeScript, JSX. Requires laravel-mix ^6.0 as a peer dependency. Unlike babel-based setups, this leverages esbuild's native fast transforms but with limited tsconfig support and no Vue SFC support.
npm install laravel-mix-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: require the extension, then call esbuild() with a preset and options.
Use default babel-loader for Vue SFC or avoid using .vue files.
Add 'isolatedModules': true and 'esModuleInterop': true to tsconfig.json.
Run 'npm install acorn --save-dev'.
Check esbuild-loader changelog for breaking changes.
Run 'npm install laravel-mix-esbuild --save-dev'.
Ensure 'require('laravel-mix-esbuild')' is called before using mix.esbuild().