Skip to content

Commit

Permalink
feat: bump terser and don't override build.target
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Feb 25, 2023
1 parent 9cca30d commit 3b02f66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"systemjs": "^6.13.0"
},
"peerDependencies": {
"terser": "^5.4.0",
"terser": "^5.16.1",
"vite": "^4.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"sass": "*",
"stylus": "*",
"sugarss": "*",
"terser": "^5.4.0"
"terser": "^5.16.1"
},
"peerDependenciesMeta": {
"@types/node": {
Expand Down
3 changes: 0 additions & 3 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,6 @@ export function resolveBuildOptions(
// handle special build targets
if (resolved.target === 'modules') {
resolved.target = ESBUILD_MODULES_TARGET
} else if (resolved.target === 'esnext' && resolved.minify === 'terser') {
// esnext + terser: limit to es2021 so it can be minified by terser
resolved.target = 'es2021'
}

if (!resolved.cssTarget) {
Expand Down

0 comments on commit 3b02f66

Please sign in to comment.