From 19f21b595a9d76ffc752d35f07f3e2878809d00a Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 31 Mar 2021 17:51:27 +0800 Subject: [PATCH] fix: fix Buffer shim compatibility in browser (#16262) --- web3.js/rollup.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index e7d012b34f..b88a9d0aa4 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -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',