Skip to content

Commit

Permalink
Update polyfill plugins (#13781)
Browse files Browse the repository at this point in the history
* Update polyfill plugins

* Babel 8
  • Loading branch information
nicolo-ribaudo committed Sep 23, 2021
1 parent 2e2d202 commit 613ae6f
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 23 deletions.
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@babel/core": "workspace:*",
"@babel/helper-plugin-test-runner": "workspace:*",
"babel-plugin-polyfill-corejs3": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.5",
"core-js-pure": "^3.16.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-proposal-decorators/package.json
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@babel/core": "workspace:*",
"@babel/helper-plugin-test-runner": "workspace:*",
"babel-plugin-polyfill-es-shims": "^0.2.2",
"babel-plugin-polyfill-es-shims": "^0.4.0",
"object.getownpropertydescriptors": "^2.1.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-runtime/package.json
Expand Up @@ -23,7 +23,7 @@
"@babel/helper-module-imports": "workspace:^7.14.5",
"@babel/helper-plugin-utils": "workspace:^7.14.5",
"babel-plugin-polyfill-corejs2": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.5",
"babel-plugin-polyfill-regenerator": "^0.2.2",
"semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
},
Expand Down
@@ -1,3 +1,5 @@
var _AggregateError = require("@babel/runtime-corejs3/core-js/aggregate-error");

var _Map = require("@babel/runtime-corejs3/core-js-stable/map");

var _Promise = require("@babel/runtime-corejs3/core-js-stable/promise");
Expand All @@ -16,6 +18,8 @@ var _WeakSet = require("@babel/runtime-corejs3/core-js-stable/weak-set");

var _clearImmediate = require("@babel/runtime-corejs3/core-js-stable/clear-immediate");

var _globalThis = require("@babel/runtime-corejs3/core-js/global-this");

var _parseFloat = require("@babel/runtime-corejs3/core-js-stable/parse-float");

var _parseInt = require("@babel/runtime-corejs3/core-js-stable/parse-int");
Expand All @@ -28,7 +32,7 @@ var _setInterval = require("@babel/runtime-corejs3/core-js-stable/set-interval")

var _setTimeout = require("@babel/runtime-corejs3/core-js-stable/set-timeout");

AggregateError;
_AggregateError;
_Map;
Observable;
_Promise;
Expand All @@ -41,7 +45,7 @@ _WeakSet;
_clearImmediate;
compositeKey;
compositeSymbol;
globalThis;
_globalThis;
_parseFloat;
_parseInt;
_queueMicrotask;
Expand Down
Expand Up @@ -38,6 +38,8 @@ var _lastIndexOfInstanceProperty = require("@babel/runtime-corejs3/core-js-stabl

var _mapInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/map");

var _matchAllInstanceProperty = require("@babel/runtime-corejs3/core-js/instance/match-all");

var _padEndInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/pad-end");

var _padStartInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/pad-start");
Expand All @@ -48,6 +50,8 @@ var _reduceRightInstanceProperty = require("@babel/runtime-corejs3/core-js-stabl

var _repeatInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/repeat");

var _replaceAllInstanceProperty = require("@babel/runtime-corejs3/core-js/instance/replace-all");

var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");

var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
Expand Down Expand Up @@ -116,7 +120,7 @@ _lastIndexOfInstanceProperty(object);

_mapInstanceProperty(object);

object.matchAll;
_matchAllInstanceProperty(object);

_padEndInstanceProperty(object);

Expand All @@ -128,7 +132,7 @@ _reduceRightInstanceProperty(object);

_repeatInstanceProperty(object);

object.replaceAll;
_replaceAllInstanceProperty(object);

_reverseInstanceProperty(object);

Expand Down Expand Up @@ -199,7 +203,7 @@ _lastIndexOfInstanceProperty(object).call(object, arg);

_mapInstanceProperty(object).call(object, arg);

object.matchAll(arg);
_matchAllInstanceProperty(object).call(object, arg);

_padEndInstanceProperty(object).call(object, arg);

Expand All @@ -211,7 +215,7 @@ _reduceRightInstanceProperty(object).call(object, arg);

_repeatInstanceProperty(object).call(object, arg);

object.replaceAll(arg);
_replaceAllInstanceProperty(object).call(object, arg);

_reverseInstanceProperty(object).call(object, arg);

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/package.json
Expand Up @@ -85,7 +85,7 @@
"@babel/preset-modules": "^0.1.4",
"@babel/types": "workspace:^7.15.6",
"babel-plugin-polyfill-corejs2": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.2",
"babel-plugin-polyfill-corejs3": "^0.2.5",
"babel-plugin-polyfill-regenerator": "^0.2.2",
"core-js-compat": "^3.16.0",
"semver": "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
Expand Down
Expand Up @@ -73,6 +73,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug-babel-7/usage-corejs3-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
Expand Up @@ -73,6 +73,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug-babel-7/usage-corejs3-versions-strings-minor-3.0-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
Expand Up @@ -73,6 +73,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug-babel-7/usage-corejs3-versions-strings-minor-3.1-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
Expand Up @@ -82,6 +82,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
Expand Up @@ -82,6 +82,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.0-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
Expand Up @@ -82,6 +82,7 @@ The corejs3 polyfill added the following polyfills:
es.string.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.dom-collections.iterator { "chrome":"52", "firefox":"50", "ie":"11" }
web.queue-microtask { "chrome":"52", "firefox":"50", "ie":"11" }
esnext.global-this { "chrome":"52", "firefox":"50", "ie":"11" }

[<CWD>/packages/babel-preset-env/test/fixtures/debug/usage-corejs3-versions-strings-minor-3.1-1/input.js]
Based on your code and targets, the regenerator polyfill did not add any polyfill.
26 changes: 13 additions & 13 deletions yarn.lock
Expand Up @@ -1108,7 +1108,7 @@ __metadata:
"@babel/helper-plugin-utils": "workspace:^7.14.5"
"@babel/helper-remap-async-to-generator": "workspace:^7.15.4"
"@babel/plugin-syntax-async-generators": ^7.8.4
babel-plugin-polyfill-corejs3: ^0.2.2
babel-plugin-polyfill-corejs3: ^0.2.5
core-js-pure: ^3.16.0
peerDependencies:
"@babel/core": ^7.0.0-0
Expand Down Expand Up @@ -1176,7 +1176,7 @@ __metadata:
"@babel/helper-plugin-test-runner": "workspace:*"
"@babel/helper-plugin-utils": "workspace:^7.14.5"
"@babel/plugin-syntax-decorators": "workspace:^7.14.5"
babel-plugin-polyfill-es-shims: ^0.2.2
babel-plugin-polyfill-es-shims: ^0.4.0
object.getownpropertydescriptors: ^2.1.1
peerDependencies:
"@babel/core": ^7.0.0-0
Expand Down Expand Up @@ -2870,7 +2870,7 @@ __metadata:
"@babel/template": "workspace:*"
"@babel/types": "workspace:*"
babel-plugin-polyfill-corejs2: ^0.2.2
babel-plugin-polyfill-corejs3: ^0.2.2
babel-plugin-polyfill-corejs3: ^0.2.5
babel-plugin-polyfill-regenerator: ^0.2.2
make-dir: ^2.1.0
semver: "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
Expand Down Expand Up @@ -3247,7 +3247,7 @@ __metadata:
"@babel/preset-modules": ^0.1.4
"@babel/types": "workspace:^7.15.6"
babel-plugin-polyfill-corejs2: ^0.2.2
babel-plugin-polyfill-corejs3: ^0.2.2
babel-plugin-polyfill-corejs3: ^0.2.5
babel-plugin-polyfill-regenerator: ^0.2.2
core-js-compat: ^3.16.0
semver: "condition:BABEL_8_BREAKING ? ^7.3.4 : ^6.3.0"
Expand Down Expand Up @@ -5629,26 +5629,26 @@ __metadata:
languageName: node
linkType: hard

"babel-plugin-polyfill-corejs3@npm:^0.2.2":
version: 0.2.2
resolution: "babel-plugin-polyfill-corejs3@npm:0.2.2"
"babel-plugin-polyfill-corejs3@npm:^0.2.2, babel-plugin-polyfill-corejs3@npm:^0.2.5":
version: 0.2.5
resolution: "babel-plugin-polyfill-corejs3@npm:0.2.5"
dependencies:
"@babel/helper-define-polyfill-provider": ^0.2.2
core-js-compat: ^3.9.1
core-js-compat: ^3.16.2
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: c86ed72e4f181a4bc521a85967de7af906f603d2098920596843bb338f40efb337212bc285589a14ccd570e3dd820447138c5cb931e4cdee306c017a05f57c0f
checksum: 7d464001f6cecc6b85aef71307e3ef17980b15aae4b2ae75d38a3fc3166005f6354932f9c694566970a3fb428f8fbc44f94c46e055a5a85b7fe8820ca16f85b6
languageName: node
linkType: hard

"babel-plugin-polyfill-es-shims@npm:^0.2.2":
version: 0.2.2
resolution: "babel-plugin-polyfill-es-shims@npm:0.2.2"
"babel-plugin-polyfill-es-shims@npm:^0.4.0":
version: 0.4.0
resolution: "babel-plugin-polyfill-es-shims@npm:0.4.0"
dependencies:
"@babel/helper-define-polyfill-provider": ^0.2.2
peerDependencies:
"@babel/core": ^7.0.0-0
checksum: ae3b32bd094e2a26c324ed45e1ae90811b44226470a1b949835f1dac71196ffa23d24ae097dbeee513537a633f0f8b2569ebe4650859340b58430b2d20672995
checksum: 5c7976591fd7c6553c570dbbc0d3da5cc9fb9645df971644ebff14b9e1d1a785f8e95d532a13ef084bdd57e44a81dd19b26ba9d59d3a22d79b2bf6b1eb342cc4
languageName: node
linkType: hard

Expand Down

0 comments on commit 613ae6f

Please sign in to comment.