Skip to content

Commit

Permalink
remove buffer as dependency to enforce the use of the buffer package …
Browse files Browse the repository at this point in the history
…from mongodb

use alias of bn.js to use only one bn.js instance
  • Loading branch information
Uzlopak committed May 3, 2022
1 parent c22152c commit a7df976
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"babel-loader": "8.2.5",
"benchmark": "2.1.4",
"bluebird": "3.7.2",
"buffer": "6.0.3",
"cheerio": "1.0.0-rc.10",
"crypto-browserify": "3.12.0",
"dox": "0.3.1",
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ const webpackConfig = {
},

resolve: {
alias: {
'bn.js': require.resolve('bn.js')
},
fallback: {
assert: require.resolve('assert-browserify'),
buffer: require.resolve('buffer/'),
buffer: require.resolve('buffer'),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify')
}
Expand Down

0 comments on commit a7df976

Please sign in to comment.