Skip to content

Commit

Permalink
Fix attempting to load node crypto module outside of node.
Browse files Browse the repository at this point in the history
Specifying a browser override for the node crypto module prevents
bundlers from attempting to shim the crypto module.

This solves two problems: bundlers that do not automatically shim
the crypto module will not produce errors now, and since SJCL is
actually used in order to create shims of the crypto module, this
eliminates some odd circular require call dependency issues.
  • Loading branch information
legastero committed Apr 25, 2019
1 parent 2a6ed4a commit 7880e50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"jsdoc": "jsdoc -c jsdoc.conf.json",
"lint": "eslint . || true"
},
"browser": {
"crypto": false
},
"engines": {
"node": "*"
},
Expand Down

0 comments on commit 7880e50

Please sign in to comment.