From b335b16b61d06aeb13789e6b0e95e6a968e18cfc Mon Sep 17 00:00:00 2001 From: vterzic Date: Wed, 28 Sep 2022 12:36:32 +0200 Subject: [PATCH 1/2] Bump web3.js version and remove polyfills --- package.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/package.json b/package.json index f3666d05..327e2b1c 100644 --- a/package.json +++ b/package.json @@ -32,15 +32,9 @@ "axios": "^0.27.2", "dkg-evm-module": "^1.0.2", "jsonld": "^8.1.0", - "web3": "^1.7.3" + "web3": "^1.8.0" }, "devDependencies": { - "assert": "^2.0.0", - "stream-browserify": "^3.0.0", - "stream-http": "^3.2.0", - "url": "^0.11.0", - "crypto-browserify": "^3.12.0", - "https-browserify": "^1.0.0", "terser-webpack-plugin": "^5.3.6", "webpack": "^5.69.0", "webpack-cli": "^4.9.2" From fc40c2b05cc6bf92fcba5f37144a18da1f078484 Mon Sep 17 00:00:00 2001 From: vterzic Date: Wed, 28 Sep 2022 12:39:21 +0200 Subject: [PATCH 2/2] Remove polyfill registration in webpack.config --- webpack.config.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 220d0ab3..47ff99b4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,13 +21,7 @@ module.exports = { }), ], resolve: { - fallback: { - fs: false, - stream: require.resolve("stream-browserify"), - http: require.resolve("stream-http/"), - https: require.resolve("https-browserify/"), - crypto: require.resolve("crypto-browserify"), - }, + fallback: {}, }, optimization: { minimize: true,