diff --git a/packages/blink-provider/package.json b/packages/blink-provider/package.json index bc4fd2d6..e22188cc 100644 --- a/packages/blink-provider/package.json +++ b/packages/blink-provider/package.json @@ -9,7 +9,7 @@ }, "scripts": { "build": "webpack-cli", - "build-prod": "webpack-cli -p" + "build-prod": "webpack-cli" }, "version": "0.8.15", "main": "dist/blink.js", diff --git a/packages/generic-http-provider/package.json b/packages/generic-http-provider/package.json index 92efd149..177acc3d 100644 --- a/packages/generic-http-provider/package.json +++ b/packages/generic-http-provider/package.json @@ -10,11 +10,11 @@ }, "scripts": { "build": "webpack-cli", - "build-prod": "webpack-cli -p" + "build-prod": "webpack-cli" }, "version": "0.8.15", "devDependencies": { - "webpack-cli": "^3.3.5" + "webpack-cli": "^4.10.0" }, "files": [ "dist/*" diff --git a/packages/mux-provider/package.json b/packages/mux-provider/package.json index c6e35dd6..ce61cca2 100644 --- a/packages/mux-provider/package.json +++ b/packages/mux-provider/package.json @@ -10,11 +10,11 @@ "debug": "^4.1.1" }, "devDependencies": { - "webpack-cli": "^3.3.5" + "webpack-cli": "^4.10.0" }, "scripts": { "build": "webpack-cli", - "build-prod": "webpack-cli -p" + "build-prod": "webpack-cli" }, "version": "0.8.15", "files": [ diff --git a/packages/package.json b/packages/package.json index e4e950cc..27b2ecca 100644 --- a/packages/package.json +++ b/packages/package.json @@ -12,11 +12,11 @@ "@babel/preset-env": "^7.4.2", "babel-loader": "^8.0.5", "lerna": "^3.16.2", - "ts-loader": "^5.3.3", + "ts-loader": "^9.4.1", "typescript": "^4.0.3", - "uglifyjs-webpack-plugin": "^2.1.2", - "webpack": "^4.29.6", - "webpack-cli": "^3.3.0", + "terser-webpack-plugin": "^5.3.6", + "webpack": "^5.74.0", + "webpack-cli": "^4.10.0", "webpack-merge": "^4.2.1" }, "dependencies": { diff --git a/packages/webio/package.json b/packages/webio/package.json index af5168ec..192c576c 100644 --- a/packages/webio/package.json +++ b/packages/webio/package.json @@ -18,11 +18,11 @@ }, "scripts": { "build": "tsc -p . && webpack", - "build-prod": "npm run build && webpack -p" + "build-prod": "npm run build && webpack" }, "devDependencies": { "typescript": "^4.4.2", - "webpack": "^4.35.3" + "webpack": "^5.74.0" }, "gitHead": "a17bcee97d64897d0e9b429a8551f19eedc47091" } diff --git a/packages/webpack.config.js b/packages/webpack.config.js index f7baed9a..29bde9b1 100644 --- a/packages/webpack.config.js +++ b/packages/webpack.config.js @@ -1,6 +1,6 @@ const path = require('path'); const webpack = require("webpack"); -const UglifyJSPlugin = require("uglifyjs-webpack-plugin"); +const TerserPlugin = require("terser-webpack-plugin"); module.exports = { @@ -8,7 +8,8 @@ module.exports = { devtool: "cheap-module-source-map", optimization: { - minimizer: [new UglifyJSPlugin()], + minimize: true, + minimizer: [new TerserPlugin()], }, // entry: { @@ -34,9 +35,7 @@ module.exports = { // is NodeJS. Nevertheless, Webpack gets confused because it doesn't know // anything about the (node-builtin) module fs, so we tell it to just ignore // all references to it. - node: { - "fs": "empty", - }, + resolve: { fallback: { fs: false } }, module: { rules: [