A webpack plugin that uses esbuild as a JavaScript minifier. Version 1.1.0 requires webpack 4+ and ships TypeScript type definitions. It provides a faster alternative to TerserPlugin by leveraging esbuild's built-in minification, which can significantly reduce build times especially for large projects. The plugin supports custom esbuild options such as target and minify settings. No other minifier plugin is needed; it replaces TerserPlugin in the webpack minimizer configuration. Development appears active but no recent commits (last commit in 2020).
npm install esbuild-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Replaces TerserPlugin with esbuild for minification in webpack 4+.
Use an alternative like esbuild-loader or upgrade to a webpack 5 compatible plugin.
Use require('esbuild-webpack-plugin').default or switch to ES import syntax.Consider using esbuild-loader for active maintenance.
Use require('esbuild-webpack-plugin').default or import syntax.Ensure you instantiate the plugin: new ESBuildPlugin(). Not a reference to the class.