fix: bundle buffer dependencies on browser

This commit is contained in:
Justin Starry 2021-02-03 08:13:13 +08:00 committed by Justin Starry
parent 08ff2d12f2
commit ddc4565d6a
1 changed files with 4 additions and 3 deletions

View File

@ -59,9 +59,10 @@ function generateConfig(configType, format) {
config.external = [
/@babel\/runtime/,
'bn.js',
'bs58',
'buffer',
'buffer-layout',
// Bundled for `Buffer` consistency
// 'bs58',
// 'buffer',
// 'buffer-layout',
'crypto-hash',
'jayson/lib/client/browser',
'js-sha3',