Skip to content

Commit

Permalink
Fix test for frontend bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
olegshtch committed Nov 6, 2022
1 parent a34c405 commit eff1f90
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/blink-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/generic-http-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand Down
4 changes: 2 additions & 2 deletions packages/mux-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
8 changes: 4 additions & 4 deletions packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/webio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
9 changes: 4 additions & 5 deletions packages/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const path = require('path');
const webpack = require("webpack");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");

module.exports = {

mode: "development",
devtool: "cheap-module-source-map",

optimization: {
minimizer: [new UglifyJSPlugin()],
minimize: true,
minimizer: [new TerserPlugin()],
},

// entry: {
Expand All @@ -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: [
Expand Down

0 comments on commit eff1f90

Please sign in to comment.