Package Exports
- esbuild-webpack-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (esbuild-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
esbuild-webpack-plugin
Use esbuild as minifier for webpack.
Why is this package?
Install
$ yarn add esbuild-webpack-plugin --devWebpack config
const ESBuildPlugin = require('esbuild-webpack-plugin').default;
module.exports = {
optimization: {
minimizer: [
new ESBuildPlugin(),
/**
* Or customize ESBuild options like below:
*
* new ESBuildPlugin({target: "es5"}),
*
* For details, please refer: https://github.com/evanw/esbuild
*/
],
},
};Test
# Get prepared
$ yarn && yarn build
# Minify with terser
$ yarn build:example
# Minify with esbuild
$ yarn build:example:esbuild
# Do not minify
$ yarn build:example:nocompressLICENSE
MIT