Skip to content

Commit

Permalink
fix(chore): updating webpack dependencies and config (#35)
Browse files Browse the repository at this point in the history
- Upgrading webpack version and replacing uglify for terser plugin in
webpack config.
- Upgrading loader-utils to fix protoype pollution in webpack.
- Upgrading json-schema to fix protoytpe pollution.
  • Loading branch information
elivillalejos authored Feb 4, 2025
1 parent 4570a74 commit 4936b4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var path = require('path');

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

var webpackConfig = {
mode: 'production',
Expand All @@ -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'},
Expand Down

0 comments on commit 4936b4b

Please sign in to comment.