An esbuild preprocessor for the Karma test runner, forked from karma-esbuild. It leverages esbuild for fast compilation and readable output, supporting custom esbuild configurations, plugin integration, and single-bundle mode to merge test files into one bundle. Current version 1.1.0 requires esbuild >=0.17.0. Compared to alternatives like karma-webpack or karma-rollup, it offers significantly faster build times due to esbuild's speed, while maintaining compatibility with Karma's standard preprocessor interface.
npm install karma-esbuild-nextNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure Karma to use esbuild preprocessor with Mocha, a define variable, and single bundle mode.
Use 'esbuild' in preprocessors array, not 'karma-esbuild-next'
Update esbuild to version 0.17.0 or later
Set singleBundle: false if you need separate bundles per test file
Switch to karma-esbuild-next
Ensure you have added 'karma-esbuild-next' to plugins array in karma.conf.js
Run 'npm install --save-dev karma-esbuild-next'
Use 'singleBundle' instead of 'bundle' for Karma-specific bundling