Skip to content

Commit eff1f90

Browse files
committed
Fix test for frontend bundle
1 parent a34c405 commit eff1f90

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

packages/blink-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"build": "webpack-cli",
12-
"build-prod": "webpack-cli -p"
12+
"build-prod": "webpack-cli"
1313
},
1414
"version": "0.8.15",
1515
"main": "dist/blink.js",

packages/generic-http-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"scripts": {
1212
"build": "webpack-cli",
13-
"build-prod": "webpack-cli -p"
13+
"build-prod": "webpack-cli"
1414
},
1515
"version": "0.8.15",
1616
"devDependencies": {
17-
"webpack-cli": "^3.3.5"
17+
"webpack-cli": "^4.10.0"
1818
},
1919
"files": [
2020
"dist/*"

packages/mux-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"debug": "^4.1.1"
1111
},
1212
"devDependencies": {
13-
"webpack-cli": "^3.3.5"
13+
"webpack-cli": "^4.10.0"
1414
},
1515
"scripts": {
1616
"build": "webpack-cli",
17-
"build-prod": "webpack-cli -p"
17+
"build-prod": "webpack-cli"
1818
},
1919
"version": "0.8.15",
2020
"files": [

packages/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"@babel/preset-env": "^7.4.2",
1313
"babel-loader": "^8.0.5",
1414
"lerna": "^3.16.2",
15-
"ts-loader": "^5.3.3",
15+
"ts-loader": "^9.4.1",
1616
"typescript": "^4.0.3",
17-
"uglifyjs-webpack-plugin": "^2.1.2",
18-
"webpack": "^4.29.6",
19-
"webpack-cli": "^3.3.0",
17+
"terser-webpack-plugin": "^5.3.6",
18+
"webpack": "^5.74.0",
19+
"webpack-cli": "^4.10.0",
2020
"webpack-merge": "^4.2.1"
2121
},
2222
"dependencies": {

packages/webio/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
},
1919
"scripts": {
2020
"build": "tsc -p . && webpack",
21-
"build-prod": "npm run build && webpack -p"
21+
"build-prod": "npm run build && webpack"
2222
},
2323
"devDependencies": {
2424
"typescript": "^4.4.2",
25-
"webpack": "^4.35.3"
25+
"webpack": "^5.74.0"
2626
},
2727
"gitHead": "a17bcee97d64897d0e9b429a8551f19eedc47091"
2828
}

packages/webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
const path = require('path');
22
const webpack = require("webpack");
3-
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
3+
const TerserPlugin = require("terser-webpack-plugin");
44

55
module.exports = {
66

77
mode: "development",
88
devtool: "cheap-module-source-map",
99

1010
optimization: {
11-
minimizer: [new UglifyJSPlugin()],
11+
minimize: true,
12+
minimizer: [new TerserPlugin()],
1213
},
1314

1415
// entry: {
@@ -34,9 +35,7 @@ module.exports = {
3435
// is NodeJS. Nevertheless, Webpack gets confused because it doesn't know
3536
// anything about the (node-builtin) module fs, so we tell it to just ignore
3637
// all references to it.
37-
node: {
38-
"fs": "empty",
39-
},
38+
resolve: { fallback: { fs: false } },
4039

4140
module: {
4241
rules: [

0 commit comments

Comments
 (0)