fix: fix Buffer shim compatibility in browser (#16262)

This commit is contained in:
Justin Starry 2021-03-31 17:51:27 +08:00 committed by GitHub
parent 3e22f61ecf
commit 19f21b595a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

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