Skip to content

Commit 08d7761

Browse files
authored
chore!: upgrade terser-webpack-plugin to 2.x (#4676)
BREAKING CHANGE: The only real breaking change is webpack-contrib/terser-webpack-plugin#129, which is not likely to affect normal users. The rest are default option values changes, which are already covered in the default provided `terserOptions` of Vue CLI. Note that here we choose to disable `extractComments` by default, as I don't see enough data showing such license comments taking too much space. The extra LICENSE file may also be confusing to some users.
1 parent 01e36f3 commit 08d7761

File tree

3 files changed

+145
-199
lines changed

3 files changed

+145
-199
lines changed

packages/@vue/cli-service/lib/config/terserOptions.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ module.exports = options => ({
3737
},
3838
sourceMap: options.productionSourceMap,
3939
cache: true,
40-
parallel: options.parallel
40+
parallel: options.parallel,
41+
extractComments: false
4142
})

packages/@vue/cli-service/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"source-map-url": "^0.4.0",
7070
"ssri": "^6.0.1",
7171
"string.prototype.padend": "^3.0.0",
72-
"terser-webpack-plugin": "^1.3.0",
72+
"terser-webpack-plugin": "^2.1.2",
7373
"thread-loader": "^2.1.2",
7474
"url-loader": "^2.1.0",
7575
"vue-loader": "^15.7.0",

0 commit comments

Comments
 (0)