Skip to content

Commit ae4882b

Browse files
committed
fix(deps): use terser-webpack-plugin instead of uglifyjs-webpack-plugin
1 parent cbeeb9f commit ae4882b

File tree

3 files changed

+5
-196
lines changed

3 files changed

+5
-196
lines changed

package-lock.json

+2-193
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"fastestsmallesttextencoderdecoder": "^1.0.7",
3737
"js-md5": "^0.7.3",
3838
"minilog": "^3.1.0",
39+
"terser-webpack-plugin": "^1.4.5",
3940
"worker-loader": "^2.0.0"
4041
},
4142
"devDependencies": {
@@ -59,7 +60,6 @@
5960
"json": "^9.0.4",
6061
"scratch-semantic-release-config": "1.0.14",
6162
"semantic-release": "19.0.5",
62-
"uglifyjs-webpack-plugin": "2.2.0",
6363
"webpack": "4.47.0",
6464
"webpack-cli": "3.3.12"
6565
},

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
2+
const TerserPlugin = require('terser-webpack-plugin');
33

44
const base = {
55
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
@@ -33,7 +33,7 @@ const base = {
3333
},
3434
optimization: {
3535
minimizer: [
36-
new UglifyJsPlugin({
36+
new TerserPlugin({
3737
include: /\.min\.js$/,
3838
sourceMap: true
3939
})

0 commit comments

Comments
 (0)