babel-plugin-polyfill-corejs2
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -27,2 +27,3 @@ "use strict"; | ||
} = _babel.default || _babel; | ||
const BABEL_RUNTIME = "@babel/runtime-corejs2"; | ||
const presetEnvCompat = "#__secret_key__@babel/preset-env__compatibility"; | ||
@@ -39,9 +40,6 @@ const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; | ||
[runtimeCompat]: { | ||
useBabelRuntime, | ||
runtimeVersion, | ||
useBabelRuntime = false, | ||
runtimeVersion = "", | ||
ext = ".js" | ||
} = { | ||
useBabelRuntime: "", | ||
runtimeVersion: "" | ||
} | ||
} = {} | ||
}) { | ||
@@ -59,3 +57,3 @@ const resolve = api.createMetaResolver({ | ||
const polyfills = (0, _addPlatformSpecificPolyfills.default)(api.targets, method, _corejs2BuiltIns.default); | ||
const coreJSBase = useBabelRuntime ? `${useBabelRuntime}/core-js` : method === "usage-pure" ? "core-js/library/fn" : "core-js/modules"; | ||
const coreJSBase = useBabelRuntime ? `${BABEL_RUNTIME}/core-js` : method === "usage-pure" ? "core-js/library/fn" : "core-js/modules"; | ||
@@ -94,2 +92,3 @@ function inject(name, utils) { | ||
name: "corejs2", | ||
runtimeName: BABEL_RUNTIME, | ||
polyfills, | ||
@@ -96,0 +95,0 @@ |
{ | ||
"name": "babel-plugin-polyfill-corejs2", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "A Babel plugin to inject imports to core-js@2 polyfills", | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"@babel/compat-data": "^7.17.7", | ||
"@babel/helper-define-polyfill-provider": "^0.3.3", | ||
"@babel/helper-define-polyfill-provider": "^0.4.0", | ||
"semver": "^6.1.1" | ||
@@ -43,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "42b9477c199c0c5420b45cfa8c9bb892d94a64af" | ||
"gitHead": "391a1f4049fe1d6943ca8e91cf7e2e23f3f1ef73" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80658
784
+ Added@babel/helper-define-polyfill-provider@0.4.4(transitive)
- Removed@babel/helper-define-polyfill-provider@0.3.3(transitive)