From 953c2e1b102707d930ec3e5553831b605b6eaa7c Mon Sep 17 00:00:00 2001 From: cgewecke Date: Sat, 7 Dec 2019 14:43:11 -0800 Subject: [PATCH] Add babel polyfill to gulp browserify step --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0a7059bfaca..5778152b1be 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -167,7 +167,8 @@ packages.forEach(function(pckg, i) { var stream = browserify(browserifyOptions) .require(pckg.src, {expose: pckg.expose}) .require('bn.js', {expose: 'BN'}) // expose it to dapp developers - .add(pckg.src); + .add(pckg.src) + .add(require.resolve("@babel/polyfill")); if (pckg.ignore) { pckg.ignore.forEach(function(ignore) {