From ddc4565d6a52af7b3ff79f174262aec85bbb1498 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 3 Feb 2021 08:13:13 +0800 Subject: [PATCH] fix: bundle buffer dependencies on browser --- web3.js/rollup.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index b1458fd0af..862c160cc2 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -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',