diff --git a/package.json b/package.json index 67a02f4..11472be 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,15 @@ "ssf": "^0.10.2", "styled-components": "6.1.8", "to-string-loader": "^1.1.5", - "uglifyjs-webpack-plugin": "^1.2.5", - "webpack": "^4.39.3", - "webpack-cli": "^3.3.9", - "webpack-dev-server": "^3.7.1" + "terser-webpack-plugin": "^5.3.10", + "webpack": "^5.94.0", + "webpack-cli": "^5.1.4", + "webpack-dev-server": "5.0.4" }, "resolutions": { - "js-yaml": "3.13.1" + "js-yaml": "3.13.1", + "loader-utils": "2.0.4", + "json-schema": "0.4.0" }, "devDependencies": { "jest": "^29.7.0" diff --git a/webpack.config.js b/webpack.config.js index 1d3905d..7769162 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,6 @@ var path = require('path'); -const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); var webpackConfig = { mode: 'production', @@ -20,7 +20,7 @@ var webpackConfig = { extensions: ['.js'], modules: [path.join(__dirname, '../src'), 'node_modules'], }, - plugins: [new UglifyJSPlugin()], + plugins: [new TerserPlugin()], module: { rules: [ {test: /\.(js|jsx)$/, use: 'babel-loader'},