Skip to content

Commit

Permalink
fix: esbuild just use chrome 80 targets to minify
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Jul 25, 2024
1 parent fb908da commit 0cc7734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/config/compressPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function addCompressPlugin(opts: IOpts) {

// esbuild transform only allow `string[]` as target
const esbuildTarget = getEsBuildTarget({
targets: userConfig.targets || {},
targets: { chrome: '80' },
jsMinifier,
});
// 提升 esbuild 压缩产物的兼容性,比如不出现 ?? 这种语法
Expand Down

0 comments on commit 0cc7734

Please sign in to comment.