fix: fix Buffer shim compatibility in browser (#16262)
This commit is contained in:
parent
3e22f61ecf
commit
19f21b595a
|
@ -78,10 +78,9 @@ function generateConfig(configType, format) {
|
||||||
config.external = [
|
config.external = [
|
||||||
/@babel\/runtime/,
|
/@babel\/runtime/,
|
||||||
'bn.js',
|
'bn.js',
|
||||||
// Bundled for `Buffer` consistency
|
'bs58',
|
||||||
// 'bs58',
|
'buffer',
|
||||||
// 'buffer',
|
'buffer-layout',
|
||||||
// 'buffer-layout',
|
|
||||||
'crypto-hash',
|
'crypto-hash',
|
||||||
'jayson/lib/client/browser',
|
'jayson/lib/client/browser',
|
||||||
'js-sha3',
|
'js-sha3',
|
||||||
|
|
Loading…
Reference in New Issue