Skip to content

Commit

Permalink
Merge pull request #29 from AllenFang/master
Browse files Browse the repository at this point in the history
Avoid multiple babel-polyfill loaded
  • Loading branch information
alex35mil committed Feb 8, 2016
2 parents 66f405e + ed7a203 commit 614d28f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/bootstrap.loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ if (semver.lt(process.version, '4.0.0')) {
Make sure it's installed in your 'node_modules/' directory.
`);
}

if (isBabelLatest) {
require(babelLatest);
} else {
require(babelPrev);
if (!global._babelPolyfill) {
if (isBabelLatest) {
require(babelLatest);
} else {
require(babelPrev);
}
}
}

Expand Down

0 comments on commit 614d28f

Please sign in to comment.