Skip to content

Commit

Permalink
Merge pull request #9808 from babel/fix-noconflict-babel-polyfill
Browse files Browse the repository at this point in the history
refactor: unify polyfill with noConflict mode
  • Loading branch information
xtuc committed Apr 2, 2019
2 parents 491b0a8 + 17e1050 commit 53e0622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
21 changes: 1 addition & 20 deletions packages/babel-polyfill/src/index.js
@@ -1,23 +1,4 @@
// Cover all standardized ES6 APIs.
import "core-js/es6";

// Standard now
import "core-js/fn/array/includes";
import "core-js/fn/array/flat-map";
import "core-js/fn/string/pad-start";
import "core-js/fn/string/pad-end";
import "core-js/fn/string/trim-start";
import "core-js/fn/string/trim-end";
import "core-js/fn/symbol/async-iterator";
import "core-js/fn/object/get-own-property-descriptors";
import "core-js/fn/object/values";
import "core-js/fn/object/entries";
import "core-js/fn/promise/finally";

// Ensure that we polyfill ES6 compat for anything web-related, if it exists.
import "core-js/web";

import "regenerator-runtime/runtime";
import "./noConflict";

if (global._babelPolyfill && typeof console !== "undefined" && console.warn) {
console.warn(
Expand Down
3 changes: 3 additions & 0 deletions packages/babel-polyfill/src/noConflict.js
Expand Up @@ -3,8 +3,11 @@ import "core-js/es6";

// Standard now
import "core-js/fn/array/includes";
import "core-js/fn/array/flat-map";
import "core-js/fn/string/pad-start";
import "core-js/fn/string/pad-end";
import "core-js/fn/string/trim-start";
import "core-js/fn/string/trim-end";
import "core-js/fn/symbol/async-iterator";
import "core-js/fn/object/get-own-property-descriptors";
import "core-js/fn/object/values";
Expand Down

0 comments on commit 53e0622

Please sign in to comment.