Skip to content

Commit 47d701a

Browse files
v-rudkovskiyr-brown
authored andcommitted
fix security vulnerabilities
1 parent e1a8858 commit 47d701a

File tree

3 files changed

+759
-1500
lines changed

3 files changed

+759
-1500
lines changed

build/webpack.prod.conf.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { merge } = require('webpack-merge');
2-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
2+
const TerserPlugin = require("terser-webpack-plugin");
33
const webWebpackConfig = require('./webpack.web.conf');
44
const nodeWebpackConfig = require('./webpack.node.conf');
55

@@ -9,13 +9,9 @@ const webpackConfig = {
99
performance: { hints: false },
1010
optimization: {
1111
minimizer: [
12-
new UglifyJsPlugin({
13-
include: /\.min\.js$/,
14-
uglifyOptions: {
15-
warnings: false,
16-
},
17-
sourceMap: true,
12+
new TerserPlugin({
1813
parallel: true,
14+
test: /\.min\.js$/,
1915
}),
2016
],
2117
},

0 commit comments

Comments
 (0)