Skip to content

Commit

Permalink
Add babel polyfill to gulp browserify step
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Dec 7, 2019
1 parent 72bf5f2 commit 953c2e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 953c2e1

Please sign in to comment.