Closed hangaoke1 closed 1 year ago
Because treeshaking is a part of bundling, we use esbuild only as a minifier, in theory you can write a custom function using https://github.com/webpack-contrib/terser-webpack-plugin#minify option and run esbuild in a bundler mode, but you will have double bundling, it will be not fast and some optimization will not work, feel free to feedback, closed beause work as expected
@alexander-akait I suggest adding a comment in the documentation regarding the use of esbuild compression, as it may not work effectively with webpack's tree shaking.
@hangaoke1 feel free to send a PR and improve our docs
when use
esbuildMinify
,IconB will in bundle,butterserMinify
work normal