Skip to content

Commit

Permalink
Do not import node libs on browser. Fixes web3#923
Browse files Browse the repository at this point in the history
I'm assuming the problem happened when web3 was imported with require, and
then webpack was used on it. If so, this was probably caused because I was
incorrectly importing Node.js related libs on the browser release. This
fixes it by correctly using the browser field on package.json.
  • Loading branch information
VictorTaelin authored and nachomazzara committed Jun 4, 2020
1 parent 4b0da68 commit 7a0b63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-bzz/package.json
Expand Up @@ -6,7 +6,7 @@
"license": "LGPL-3.0",
"main": "src/index.js",
"dependencies": {
"swarm-js": "0.1.30",
"swarm-js": "0.1.33",
"underscore": "1.8.3"
}
}

0 comments on commit 7a0b63d

Please sign in to comment.