From 504e64ff7d071944fb28397b417689d7d224beb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 15 Jan 2024 14:58:22 +0100 Subject: [PATCH] Sort imports according to `core-js-compat` ordering --- .../src/index.ts | 3 +- .../entries-features-chrome-71/output.mjs | 2 +- .../entry-global/entries-features/output.mjs | 10 +- .../entry-global/entries-stable/output.mjs | 4 +- .../entry-global/normalization/output.mjs | 10 +- .../usage-global/all-corejs-3.21/output.mjs | 28 ++-- .../usage-global/all-corejs-3.25/output.mjs | 44 +++--- .../usage-global/all-corejs-3.27/output.mjs | 54 +++---- .../usage-global/all-corejs-3.28/output.mjs | 54 +++---- .../usage-global/all-corejs-3.29/output.mjs | 56 ++++---- .../usage-global/all-corejs-3.30/output.mjs | 58 ++++---- .../usage-global/all-corejs-3.31/output.mjs | 70 ++++----- .../usage-global/all-corejs-3.32/output.mjs | 74 +++++----- .../usage-global/all-corejs-3.33/output.mjs | 84 +++++------ .../usage-global/all-corejs-3.34/output.mjs | 84 +++++------ .../output.mjs | 68 ++++----- .../output.mjs | 92 ++++++------ .../output.mjs | 94 ++++++------ .../output.mjs | 96 ++++++------- .../output.mjs | 110 +++++++------- .../output.mjs | 120 ++++++++-------- .../output.mjs | 134 ++++++++--------- .../output.mjs | 136 +++++++++--------- .../output.mjs | 38 ++--- .../output.mjs | 54 +++---- .../all-proposals-corejs-3.20/output.mjs | 38 ++--- .../usage-global/all-proposals/output.mjs | 22 +-- .../test/fixtures/usage-global/all/output.mjs | 16 +-- .../usage-global/array-flat/output.mjs | 2 +- .../async-iterator-problem-case/output.mjs | 8 +- .../usage-global/decorators/output.js | 4 +- .../destructuring-assignment/output.mjs | 2 +- .../destructuring-catch/output.mjs | 2 +- .../destructuring-for-x/output.mjs | 2 +- .../destructuring-iife/output.mjs | 4 +- .../destructuring-params/output.mjs | 2 +- .../output.mjs | 2 +- .../determanated-instance-methods/output.mjs | 8 +- .../evaluated-class-methods/output.mjs | 2 +- .../evaluated-instance-methods/output.mjs | 2 +- .../for-of-destructure-with/output.mjs | 2 +- .../fixtures/usage-global/for-of/output.mjs | 2 +- .../test/fixtures/usage-global/in/output.mjs | 4 +- .../output.mjs | 2 +- .../usage-global/instance-methods/output.mjs | 28 ++-- .../usage-global/number-ie-11/output.mjs | 2 +- .../object-destructuring/output.mjs | 18 +-- .../usage-global/promise-all/output.mjs | 2 +- .../usage-global/promise-race/output.mjs | 2 +- .../output.mjs | 2 +- .../proposal-to-stable-corejs-3.0/output.mjs | 2 +- .../shippedProposals-corejs-3.29/output.mjs | 18 +-- .../usage-global/shippedProposals/output.mjs | 18 +-- .../source-type-script-query/output.js | 2 +- .../usage-global/source-type-script/output.js | 2 +- .../fixtures/usage-global/spread/output.mjs | 2 +- .../usage-global/static-methods/output.mjs | 2 +- .../symbol-iterator-in/output.mjs | 4 +- .../usage-global/symbol-iterator/output.mjs | 4 +- .../fixtures/usage-global/timers/output.mjs | 2 +- .../output.mjs | 6 +- .../typed-array-static/output.mjs | 2 +- .../usage-pure/aliased-constructors/output.js | 2 +- .../usage-pure/all-corejs-3.21/output.mjs | 12 +- .../usage-pure/all-corejs-3.24/output.mjs | 14 +- .../usage-pure/all-corejs-3.27/output.mjs | 18 +-- .../usage-pure/all-corejs-3.28/output.mjs | 18 +-- .../usage-pure/all-corejs-3.30/output.mjs | 20 +-- .../usage-pure/all-corejs-3.31/output.mjs | 22 +-- .../usage-pure/all-corejs-3.32/output.mjs | 22 +-- .../usage-pure/all-corejs-3.33/output.mjs | 22 +-- .../usage-pure/all-corejs-3.34/output.mjs | 22 +-- .../output.mjs | 10 +- .../output.mjs | 18 +-- .../output.mjs | 20 +-- .../output.mjs | 34 ++--- .../output.mjs | 42 +++--- .../output.mjs | 42 +++--- .../output.mjs | 48 +++---- .../output.mjs | 50 +++---- .../output.mjs | 52 +++---- .../output.mjs | 52 +++---- .../all-proposals-corejs-3.20/output.mjs | 30 ++-- .../built-in-globals-proposals/output.js | 18 +-- .../usage-pure/built-in-globals/output.js | 14 +- .../output.js | 30 ++-- .../built-in-instance-methods/output.js | 26 ++-- .../output.js | 88 ++++++------ .../built-in-static-methods/output.js | 42 +++--- .../fixtures/usage-pure/es6-for-of/output.js | 6 +- .../fixtures/usage-pure/modules/output.js | 2 +- .../usage-pure/shippedProposals/output.mjs | 8 +- 92 files changed, 1313 insertions(+), 1312 deletions(-) diff --git a/packages/babel-plugin-polyfill-corejs3/src/index.ts b/packages/babel-plugin-polyfill-corejs3/src/index.ts index 607510bd..6d6fa141 100644 --- a/packages/babel-plugin-polyfill-corejs3/src/index.ts +++ b/packages/babel-plugin-polyfill-corejs3/src/index.ts @@ -93,7 +93,7 @@ export default defineProvider(function ( function maybeInjectGlobalImpl(name: string, utils) { if (shouldInjectPolyfill(name)) { debug(name); - utils.injectGlobalImport(coreJSModule(name)); + utils.injectGlobalImport(coreJSModule(name), name); return true; } return false; @@ -131,6 +131,7 @@ export default defineProvider(function ( return utils.injectDefaultImport( `${coreJSPureBase}/${desc.pure}${ext}`, hint, + name, ); } } diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features-chrome-71/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features-chrome-71/output.mjs index 799439dd..71011e63 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features-chrome-71/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features-chrome-71/output.mjs @@ -1,3 +1,4 @@ +import "core-js/modules/es.object.from-entries.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.js"; @@ -16,5 +17,4 @@ import "core-js/modules/esnext.set.reduce.js"; import "core-js/modules/esnext.set.some.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/es.object.from-entries.js"; import "core-js/modules/esnext.string.replace-all.js"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features/output.mjs index c67124b2..6f3c6d93 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-features/output.mjs @@ -1,7 +1,11 @@ +import "core-js/modules/es.array.from.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.object.from-entries.js"; import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.set.js"; import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.replace.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.js"; @@ -20,9 +24,5 @@ import "core-js/modules/esnext.set.reduce.js"; import "core-js/modules/esnext.set.some.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.object.from-entries.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/es.string.replace.js"; import "core-js/modules/esnext.string.replace-all.js"; +import "core-js/modules/web.dom-collections.iterator.js"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-stable/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-stable/output.mjs index 21776b91..013b99c3 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-stable/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/entries-stable/output.mjs @@ -1,7 +1,7 @@ +import "core-js/modules/es.array.from.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.object.from-entries.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.set.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.object.from-entries.js"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/normalization/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/normalization/output.mjs index 950ff459..e291fc7d 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/normalization/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/entry-global/normalization/output.mjs @@ -1,11 +1,11 @@ +import "core-js/modules/es.symbol.async-iterator.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.array.from.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/es.array.from.js"; import "core-js/modules/es.promise.js"; import "core-js/modules/es.promise.finally.js"; -import "core-js/modules/es.symbol.iterator.js"; -import "core-js/modules/es.symbol.async-iterator.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.iterator.js"; import 'foo/index.js'; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.21/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.21/output.mjs index d3c68163..db251beb 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.21/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.21/output.mjs @@ -1,28 +1,28 @@ -import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.map.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; import "core-js/modules/es.symbol.js"; import "core-js/modules/es.symbol.description.js"; import "core-js/modules/es.symbol.iterator.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; -import "core-js/modules/es.global-this.js"; +import "core-js/modules/es.symbol.match.js"; import "core-js/modules/es.error.cause.js"; import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.from.js"; +import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.global-this.js"; +import "core-js/modules/es.map.js"; import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; +import "core-js/modules/esnext.array.with.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; +import "core-js/modules/web.queue-microtask.js"; import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/esnext.array.with.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.25/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.25/output.mjs index 51287a00..8899c361 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.25/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.25/output.mjs @@ -1,41 +1,41 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.array.with.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/esnext.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; -import "core-js/modules/es.error.cause.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url-search-params.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.27/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.27/output.mjs index 0f03d672..dd1bf216 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.27/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.27/output.mjs @@ -1,46 +1,46 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; -import "core-js/modules/web.dom-exception.constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; +import "core-js/modules/es.weak-map.js"; import "core-js/modules/esnext.array.with.js"; -import "core-js/modules/es.object.proto.js"; import "core-js/modules/esnext.string.is-well-formed.js"; import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.dom-exception.constructor.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.dom-exception.to-string-tag.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url-search-params.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.28/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.28/output.mjs index e7303cf6..cfe011ae 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.28/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.28/output.mjs @@ -1,46 +1,46 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url-search-params.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.29/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.29/output.mjs index c7bbbd7e..f02a8342 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.29/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.29/output.mjs @@ -1,47 +1,47 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.30/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.30/output.mjs index 09af56a8..d486348b 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.30/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.30/output.mjs @@ -1,49 +1,49 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.31/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.31/output.mjs index 0f796381..280f6d00 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.31/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.31/output.mjs @@ -1,55 +1,55 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.array-buffer.slice.js"; +import "core-js/modules/es.data-view.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; -import "core-js/modules/es.array-buffer.slice.js"; -import "core-js/modules/es.data-view.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.32/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.32/output.mjs index 1c3caa64..8b773747 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.32/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.32/output.mjs @@ -1,57 +1,57 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.array-buffer.slice.js"; +import "core-js/modules/es.data-view.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; +import "core-js/modules/es.regexp.constructor.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; -import "core-js/modules/es.array-buffer.slice.js"; -import "core-js/modules/es.data-view.js"; -import "core-js/modules/es.regexp.constructor.js"; -import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.33/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.33/output.mjs index d13517d6..6e94dbfe 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.33/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.33/output.mjs @@ -1,57 +1,40 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.array-buffer.slice.js"; +import "core-js/modules/es.data-view.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.object.create.js"; +import "core-js/modules/es.object.freeze.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; +import "core-js/modules/es.regexp.constructor.js"; import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.replace.js"; import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; -import "core-js/modules/web.dom-exception.constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/es.string.is-well-formed.js"; import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; -import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.object.create.js"; -import "core-js/modules/es.object.freeze.js"; -import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; -import "core-js/modules/es.array-buffer.slice.js"; -import "core-js/modules/es.data-view.js"; -import "core-js/modules/es.regexp.constructor.js"; -import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/es.typed-array.uint8-array.js"; import "core-js/modules/es.typed-array.at.js"; import "core-js/modules/es.typed-array.copy-within.js"; import "core-js/modules/es.typed-array.every.js"; @@ -81,7 +64,24 @@ import "core-js/modules/es.typed-array.to-reversed.js"; import "core-js/modules/es.typed-array.to-sorted.js"; import "core-js/modules/es.typed-array.to-string.js"; import "core-js/modules/es.typed-array.with.js"; -import "core-js/modules/es.typed-array.uint8-array.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.dom-exception.constructor.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.dom-exception.to-string-tag.js"; +import "core-js/modules/web.self.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.34/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.34/output.mjs index 7d634bbc..0d56618f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.34/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-corejs-3.34/output.mjs @@ -1,57 +1,43 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.match-all.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; +import "core-js/modules/es.array.filter.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/es.promise.js"; import "core-js/modules/es.array.for-each.js"; -import "core-js/modules/web.dom-collections.for-each.js"; import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.array.map.js"; -import "core-js/modules/es.array.filter.js"; -import "core-js/modules/es.map.js"; -import "core-js/modules/es.number.constructor.js"; -import "core-js/modules/es.regexp.dot-all.js"; -import "core-js/modules/es.regexp.sticky.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.match-all.js"; -import "core-js/modules/es.string.match-all.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/es.string.replace.js"; -import "core-js/modules/es.string.replace-all.js"; -import "core-js/modules/web.url.js"; -import "core-js/modules/web.url-search-params.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; import "core-js/modules/es.array.push.js"; -import "core-js/modules/es.error.to-string.js"; -import "core-js/modules/web.dom-exception.constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.dom-exception.to-string-tag.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/web.btoa.js"; import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.object.proto.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/es.string.from-code-point.js"; -import "core-js/modules/es.weak-map.js"; -import "core-js/modules/web.self.js"; -import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.array-buffer.slice.js"; +import "core-js/modules/es.data-view.js"; +import "core-js/modules/es.map.js"; +import "core-js/modules/es.map.group-by.js"; +import "core-js/modules/es.number.constructor.js"; import "core-js/modules/es.object.create.js"; import "core-js/modules/es.object.freeze.js"; -import "core-js/modules/web.url.can-parse.js"; import "core-js/modules/es.object.group-by.js"; -import "core-js/modules/es.map.group-by.js"; +import "core-js/modules/es.object.keys.js"; +import "core-js/modules/es.object.proto.js"; +import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; import "core-js/modules/es.promise.with-resolvers.js"; -import "core-js/modules/es.array-buffer.slice.js"; -import "core-js/modules/es.data-view.js"; import "core-js/modules/es.regexp.constructor.js"; +import "core-js/modules/es.regexp.dot-all.js"; +import "core-js/modules/es.regexp.exec.js"; +import "core-js/modules/es.regexp.sticky.js"; import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.from-code-point.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match-all.js"; +import "core-js/modules/es.string.replace.js"; +import "core-js/modules/es.string.replace-all.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/es.typed-array.uint8-array.js"; import "core-js/modules/es.typed-array.at.js"; import "core-js/modules/es.typed-array.copy-within.js"; import "core-js/modules/es.typed-array.every.js"; @@ -81,7 +67,21 @@ import "core-js/modules/es.typed-array.to-reversed.js"; import "core-js/modules/es.typed-array.to-sorted.js"; import "core-js/modules/es.typed-array.to-string.js"; import "core-js/modules/es.typed-array.with.js"; -import "core-js/modules/es.typed-array.uint8-array.js"; +import "core-js/modules/es.weak-map.js"; +import "core-js/modules/web.btoa.js"; +import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.dom-exception.constructor.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.dom-exception.to-string-tag.js"; +import "core-js/modules/web.self.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.27/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.27/output.mjs index 718160eb..224ca377 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.27/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.27/output.mjs @@ -1,32 +1,42 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.array.with.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -39,26 +49,16 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; +import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.matcher.js"; import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/esnext.array.with.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.28/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.28/output.mjs index 2960bef0..ecb768f4 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.28/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.28/output.mjs @@ -1,32 +1,47 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -39,33 +54,7 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.number.range.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -89,6 +78,17 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.29/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.29/output.mjs index 2b6beb6f..1118c312 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.29/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.29/output.mjs @@ -1,32 +1,47 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -39,34 +54,7 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.number.range.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -90,6 +78,18 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.30/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.30/output.mjs index d27e3251..04b3f8ec 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.30/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.30/output.mjs @@ -1,36 +1,52 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; import "core-js/modules/esnext.map.find-key.js"; +import "core-js/modules/esnext.map.group-by.js"; import "core-js/modules/esnext.map.includes.js"; import "core-js/modules/esnext.map.key-of.js"; import "core-js/modules/esnext.map.map-keys.js"; @@ -39,34 +55,7 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/esnext.string.is-well-formed.js"; -import "core-js/modules/esnext.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.number.range.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -90,8 +79,19 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.string.is-well-formed.js"; +import "core-js/modules/esnext.string.to-well-formed.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.map.group-by.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.31/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.31/output.mjs index d67ef287..a123a4f7 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.31/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.31/output.mjs @@ -1,36 +1,55 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.metadata.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; import "core-js/modules/esnext.map.find-key.js"; +import "core-js/modules/esnext.map.group-by.js"; import "core-js/modules/esnext.map.includes.js"; import "core-js/modules/esnext.map.key-of.js"; import "core-js/modules/esnext.map.map-keys.js"; @@ -39,37 +58,9 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.function.metadata.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -93,12 +84,21 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.is-registered-symbol.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.32/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.32/output.mjs index a10bb330..7b45afad 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.32/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.32/output.mjs @@ -1,36 +1,59 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.data-view.get-float16.js"; +import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; +import "core-js/modules/esnext.data-view.set-float16.js"; +import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.metadata.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; import "core-js/modules/esnext.map.find-key.js"; +import "core-js/modules/esnext.map.group-by.js"; import "core-js/modules/esnext.map.includes.js"; import "core-js/modules/esnext.map.key-of.js"; import "core-js/modules/esnext.map.map-keys.js"; @@ -39,37 +62,10 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.function.metadata.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.math.f16round.js"; +import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -93,17 +89,21 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.is-registered-symbol.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; -import "core-js/modules/esnext.math.f16round.js"; -import "core-js/modules/esnext.data-view.get-float16.js"; -import "core-js/modules/esnext.data-view.set-float16.js"; -import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; -import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.33/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.33/output.mjs index a87355b5..f89c75da 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.33/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.33/output.mjs @@ -1,36 +1,65 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/es.typed-array.to-reversed.js"; +import "core-js/modules/es.typed-array.to-sorted.js"; +import "core-js/modules/es.typed-array.with.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.array-buffer.detached.js"; +import "core-js/modules/esnext.array-buffer.transfer.js"; +import "core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.data-view.get-float16.js"; +import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; +import "core-js/modules/esnext.data-view.set-float16.js"; +import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.metadata.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; import "core-js/modules/esnext.map.find-key.js"; +import "core-js/modules/esnext.map.group-by.js"; import "core-js/modules/esnext.map.includes.js"; import "core-js/modules/esnext.map.key-of.js"; import "core-js/modules/esnext.map.map-keys.js"; @@ -39,37 +68,11 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.function.metadata.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.math.f16round.js"; +import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.object.group-by.js"; +import "core-js/modules/esnext.promise.with-resolvers.js"; +import "core-js/modules/esnext.regexp.escape.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -93,28 +96,25 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.is-registered-symbol.js"; -import "core-js/modules/esnext.object.group-by.js"; -import "core-js/modules/esnext.map.group-by.js"; -import "core-js/modules/esnext.promise.with-resolvers.js"; -import "core-js/modules/esnext.math.f16round.js"; -import "core-js/modules/esnext.data-view.get-float16.js"; -import "core-js/modules/esnext.data-view.set-float16.js"; -import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; -import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; -import "core-js/modules/esnext.regexp.escape.js"; -import "core-js/modules/es.typed-array.to-reversed.js"; -import "core-js/modules/es.typed-array.to-sorted.js"; -import "core-js/modules/es.typed-array.with.js"; -import "core-js/modules/esnext.array-buffer.detached.js"; -import "core-js/modules/esnext.array-buffer.transfer.js"; -import "core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; import "core-js/modules/esnext.typed-array.filter-reject.js"; import "core-js/modules/esnext.typed-array.group-by.js"; import "core-js/modules/esnext.typed-array.to-spliced.js"; import "core-js/modules/esnext.typed-array.unique-by.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.34/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.34/output.mjs index b49d17ce..b6bbf7c5 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.34/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-107-corejs-3.34/output.mjs @@ -1,32 +1,63 @@ -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; +import "core-js/modules/es.array.with.js"; +import "core-js/modules/es.map.group-by.js"; +import "core-js/modules/es.object.group-by.js"; +import "core-js/modules/es.promise.with-resolvers.js"; +import "core-js/modules/es.string.is-well-formed.js"; +import "core-js/modules/es.string.to-well-formed.js"; +import "core-js/modules/es.typed-array.to-reversed.js"; +import "core-js/modules/es.typed-array.to-sorted.js"; +import "core-js/modules/es.typed-array.with.js"; +import "core-js/modules/esnext.suppressed-error.constructor.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.array-buffer.detached.js"; +import "core-js/modules/esnext.array-buffer.transfer.js"; +import "core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js"; +import "core-js/modules/esnext.async-disposable-stack.constructor.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.async-dispose.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.data-view.get-float16.js"; +import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; +import "core-js/modules/esnext.data-view.set-float16.js"; +import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; +import "core-js/modules/esnext.disposable-stack.constructor.js"; +import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.metadata.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.dispose.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.range.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; +import "core-js/modules/esnext.json.is-raw-json.js"; +import "core-js/modules/esnext.json.parse.js"; +import "core-js/modules/esnext.json.raw-json.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -39,37 +70,9 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/esnext.async-iterator.async-dispose.js"; -import "core-js/modules/esnext.symbol.async-dispose.js"; -import "core-js/modules/esnext.symbol.matcher.js"; -import "core-js/modules/esnext.function.metadata.js"; -import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/web.url-search-params.delete.js"; -import "core-js/modules/web.url-search-params.has.js"; -import "core-js/modules/web.url-search-params.size.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; -import "core-js/modules/web.dom-exception.stack.js"; -import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/es.array.with.js"; -import "core-js/modules/es.string.is-well-formed.js"; -import "core-js/modules/es.string.to-well-formed.js"; -import "core-js/modules/esnext.string.dedent.js"; -import "core-js/modules/esnext.suppressed-error.constructor.js"; -import "core-js/modules/esnext.disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.dispose.js"; -import "core-js/modules/esnext.async-disposable-stack.constructor.js"; -import "core-js/modules/esnext.iterator.range.js"; -import "core-js/modules/esnext.json.parse.js"; -import "core-js/modules/esnext.json.is-raw-json.js"; -import "core-js/modules/esnext.json.raw-json.js"; -import "core-js/modules/esnext.symbol.is-well-known.js"; -import "core-js/modules/esnext.symbol.is-registered.js"; -import "core-js/modules/esnext.function.demethodize.js"; +import "core-js/modules/esnext.math.f16round.js"; +import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.regexp.escape.js"; import "core-js/modules/esnext.set.add-all.js"; import "core-js/modules/esnext.set.delete-all.js"; import "core-js/modules/esnext.set.difference.v2.js"; @@ -93,32 +96,29 @@ import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.js"; import "core-js/modules/esnext.set.union.v2.js"; import "core-js/modules/esnext.set.union.js"; -import "core-js/modules/web.url.can-parse.js"; -import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.string.dedent.js"; +import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.is-registered-symbol.js"; -import "core-js/modules/es.object.group-by.js"; -import "core-js/modules/es.map.group-by.js"; -import "core-js/modules/es.promise.with-resolvers.js"; -import "core-js/modules/esnext.math.f16round.js"; -import "core-js/modules/esnext.data-view.get-float16.js"; -import "core-js/modules/esnext.data-view.set-float16.js"; -import "core-js/modules/esnext.data-view.get-uint8-clamped.js"; -import "core-js/modules/esnext.data-view.set-uint8-clamped.js"; -import "core-js/modules/esnext.regexp.escape.js"; -import "core-js/modules/es.typed-array.to-reversed.js"; -import "core-js/modules/es.typed-array.to-sorted.js"; -import "core-js/modules/es.typed-array.with.js"; -import "core-js/modules/esnext.array-buffer.detached.js"; -import "core-js/modules/esnext.array-buffer.transfer.js"; -import "core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js"; +import "core-js/modules/esnext.symbol.is-registered.js"; +import "core-js/modules/esnext.symbol.is-well-known-symbol.js"; +import "core-js/modules/esnext.symbol.is-well-known.js"; +import "core-js/modules/esnext.symbol.matcher.js"; +import "core-js/modules/esnext.symbol.metadata.js"; import "core-js/modules/esnext.typed-array.filter-reject.js"; import "core-js/modules/esnext.typed-array.group-by.js"; import "core-js/modules/esnext.typed-array.to-spliced.js"; import "core-js/modules/esnext.typed-array.unique-by.js"; import "core-js/modules/esnext.uint8-array.from-base64.js"; +import "core-js/modules/esnext.uint8-array.from-hex.js"; import "core-js/modules/esnext.uint8-array.to-base64.js"; import "core-js/modules/esnext.uint8-array.to-hex.js"; -import "core-js/modules/esnext.uint8-array.from-hex.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/web.dom-exception.stack.js"; +import "core-js/modules/web.structured-clone.js"; +import "core-js/modules/web.url.can-parse.js"; +import "core-js/modules/web.url-search-params.delete.js"; +import "core-js/modules/web.url-search-params.has.js"; +import "core-js/modules/web.url-search-params.size.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.16/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.16/output.mjs index 109f4274..a75b2aa4 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.16/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.16/output.mjs @@ -1,34 +1,32 @@ import "core-js/modules/esnext.array.find-last.js"; import "core-js/modules/esnext.array.find-last-index.js"; -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -41,9 +39,11 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; +import "core-js/modules/esnext.number.range.js"; import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.matcher.js"; import "core-js/modules/esnext.symbol.metadata.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.24/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.24/output.mjs index cae13e54..867b4345 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.24/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-chrome-90-corejs-3.24/output.mjs @@ -1,34 +1,40 @@ +import "core-js/modules/es.error.cause.js"; import "core-js/modules/es.array.find-last.js"; import "core-js/modules/es.array.find-last-index.js"; -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.async-iterator.to-array.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.to-array.js"; -import "core-js/modules/esnext.async-iterator.for-each.js"; -import "core-js/modules/esnext.iterator.for-each.js"; -import "core-js/modules/esnext.iterator.from.js"; -import "core-js/modules/esnext.async-iterator.map.js"; -import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/es.array.push.js"; import "core-js/modules/esnext.array.group-by.js"; -import "core-js/modules/esnext.async-iterator.filter.js"; -import "core-js/modules/esnext.iterator.filter.js"; -import "core-js/modules/esnext.async-iterator.take.js"; -import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.is-template-object.js"; +import "core-js/modules/esnext.array.unique-by.js"; +import "core-js/modules/esnext.array.with.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; import "core-js/modules/esnext.async-iterator.drop.js"; -import "core-js/modules/esnext.iterator.drop.js"; import "core-js/modules/esnext.async-iterator.every.js"; +import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; +import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.from.js"; +import "core-js/modules/esnext.async-iterator.indexed.js"; +import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; -import "core-js/modules/esnext.array.unique-by.js"; -import "core-js/modules/esnext.number.range.js"; +import "core-js/modules/esnext.async-iterator.take.js"; +import "core-js/modules/esnext.async-iterator.to-array.js"; import "core-js/modules/esnext.bigint.range.js"; -import "core-js/modules/esnext.array.is-template-object.js"; -import "core-js/modules/esnext.map.emplace.js"; -import "core-js/modules/esnext.weak-map.emplace.js"; +import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.function.un-this.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.drop.js"; +import "core-js/modules/esnext.iterator.filter.js"; +import "core-js/modules/esnext.iterator.for-each.js"; +import "core-js/modules/esnext.iterator.from.js"; +import "core-js/modules/esnext.iterator.indexed.js"; +import "core-js/modules/esnext.iterator.map.js"; +import "core-js/modules/esnext.iterator.take.js"; +import "core-js/modules/esnext.iterator.to-array.js"; import "core-js/modules/esnext.map.delete-all.js"; +import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; import "core-js/modules/esnext.map.find.js"; @@ -41,19 +47,13 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; +import "core-js/modules/esnext.number.range.js"; import "core-js/modules/esnext.symbol.async-dispose.js"; import "core-js/modules/esnext.symbol.matcher.js"; import "core-js/modules/esnext.symbol.metadata.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.function.un-this.js"; -import "core-js/modules/es.array.push.js"; -import "core-js/modules/esnext.function.is-constructor.js"; +import "core-js/modules/esnext.weak-map.emplace.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.async-iterator.indexed.js"; -import "core-js/modules/esnext.iterator.indexed.js"; -import "core-js/modules/esnext.array.with.js"; -import "core-js/modules/es.error.cause.js"; [].findLast(fn); [].findLastIndex(fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-corejs-3.20/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-corejs-3.20/output.mjs index 5ebbd6ea..a63a297b 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-corejs-3.20/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals-corejs-3.20/output.mjs @@ -1,8 +1,24 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.symbol.match.js"; +import "core-js/modules/es.error.cause.js"; +import "core-js/modules/es.error.to-string.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.global-this.js"; import "core-js/modules/es.map.js"; +import "core-js/modules/es.object.keys.js"; import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; +import "core-js/modules/es.regexp.exec.js"; +import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; +import "core-js/modules/esnext.array.group-by-to-map.js"; +import "core-js/modules/esnext.array.with.js"; +import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.iterator.constructor.js"; import "core-js/modules/esnext.map.delete-all.js"; import "core-js/modules/esnext.map.emplace.js"; import "core-js/modules/esnext.map.every.js"; @@ -17,30 +33,14 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.iterator.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; -import "core-js/modules/es.global-this.js"; import "core-js/modules/esnext.observable.js"; import "core-js/modules/esnext.symbol.observable.js"; -import "core-js/modules/es.error.cause.js"; -import "core-js/modules/es.error.to-string.js"; -import "core-js/modules/es.object.keys.js"; -import "core-js/modules/es.set.js"; +import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/web.dom-exception.constructor.js"; import "core-js/modules/web.dom-exception.stack.js"; import "core-js/modules/web.dom-exception.to-string-tag.js"; +import "core-js/modules/web.queue-microtask.js"; import "core-js/modules/web.structured-clone.js"; -import "core-js/modules/esnext.array.group-by-to-map.js"; -import "core-js/modules/esnext.async-iterator.constructor.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.array.with.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals/output.mjs index fe653151..12c9b670 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all-proposals/output.mjs @@ -1,8 +1,16 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.symbol.match.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.promise.js"; +import "core-js/modules/es.regexp.exec.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; +import "core-js/modules/esnext.global-this.js"; import "core-js/modules/esnext.map.delete-all.js"; import "core-js/modules/esnext.map.every.js"; import "core-js/modules/esnext.map.filter.js"; @@ -16,18 +24,10 @@ import "core-js/modules/esnext.map.merge.js"; import "core-js/modules/esnext.map.reduce.js"; import "core-js/modules/esnext.map.some.js"; import "core-js/modules/esnext.map.update.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.iterator.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; -import "core-js/modules/esnext.global-this.js"; import "core-js/modules/esnext.observable.js"; import "core-js/modules/esnext.symbol.observable.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.queue-microtask.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all/output.mjs index a91585ef..44981d24 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/all/output.mjs @@ -1,18 +1,18 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.symbol.match.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.iterator.js"; import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; import "core-js/modules/esnext.global-this.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.queue-microtask.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/array-flat/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/array-flat/output.mjs index b15f5b2f..f649b006 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/array-flat/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/array-flat/output.mjs @@ -1,6 +1,6 @@ import "core-js/modules/es.array.flat.js"; -import "core-js/modules/es.array.unscopables.flat.js"; import "core-js/modules/es.array.flat-map.js"; +import "core-js/modules/es.array.unscopables.flat.js"; import "core-js/modules/es.array.unscopables.flat-map.js"; import "core-js/modules/es.object.to-string.js"; [].flat(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/async-iterator-problem-case/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/async-iterator-problem-case/output.mjs index c095e8f1..ba33426e 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/async-iterator-problem-case/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/async-iterator-problem-case/output.mjs @@ -1,10 +1,9 @@ import "core-js/modules/es.array.every.js"; +import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/esnext.async-iterator.every.js"; -import "core-js/modules/esnext.iterator.constructor.js"; -import "core-js/modules/esnext.iterator.every.js"; import "core-js/modules/es.promise.js"; import "core-js/modules/esnext.async-iterator.constructor.js"; +import "core-js/modules/esnext.async-iterator.every.js"; import "core-js/modules/esnext.async-iterator.filter.js"; import "core-js/modules/esnext.async-iterator.find.js"; import "core-js/modules/esnext.async-iterator.flat-map.js"; @@ -12,6 +11,7 @@ import "core-js/modules/esnext.async-iterator.for-each.js"; import "core-js/modules/esnext.async-iterator.map.js"; import "core-js/modules/esnext.async-iterator.reduce.js"; import "core-js/modules/esnext.async-iterator.some.js"; +import "core-js/modules/esnext.iterator.constructor.js"; +import "core-js/modules/esnext.iterator.every.js"; import "core-js/modules/esnext.iterator.to-async.js"; -import "core-js/modules/es.array.iterator.js"; [1, 2, 3].values().toAsync().every(fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/decorators/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/decorators/output.js index 41cc29e0..8da84d90 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/decorators/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/decorators/output.js @@ -1,9 +1,9 @@ var _applyDecs = require("@babel/runtime-corejs3/helpers/applyDecs2305").default; var _dec, _init_foo; +require("core-js/modules/es.array.iterator.js"); +require("core-js/modules/es.string.iterator.js"); require("core-js/modules/esnext.function.metadata.js"); require("core-js/modules/esnext.symbol.metadata.js"); -require("core-js/modules/es.string.iterator.js"); -require("core-js/modules/es.array.iterator.js"); require("core-js/modules/web.dom-collections.iterator.js"); _dec = dec; class A { diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-assignment/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-assignment/output.mjs index a41346aa..d30f7531 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-assignment/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-assignment/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; [a, b] = c; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-catch/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-catch/output.mjs index 58ccd692..3842ed8f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-catch/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-catch/output.mjs @@ -1,5 +1,5 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; try { a(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-for-x/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-for-x/output.mjs index edaefba0..4fffc75f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-for-x/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-for-x/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; for (let [a, b] in c); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-iife/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-iife/output.mjs index 285b886d..7ea50381 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-iife/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-iife/output.mjs @@ -1,7 +1,7 @@ -import "core-js/modules/es.object.entries.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.object.entries.js"; import "core-js/modules/es.string.includes.js"; +import "core-js/modules/es.string.iterator.js"; !function (foo, { entries }) {}({}, Object); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-params/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-params/output.mjs index 1fa6b514..5af996d6 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-params/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-params/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; function a([b, c]) {} diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-variable-declaration/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-variable-declaration/output.mjs index 73c95a2b..c74cde57 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-variable-declaration/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/destructuring-variable-declaration/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; const [a, b] = c; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/determanated-instance-methods/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/determanated-instance-methods/output.mjs index a4d4643a..f333ffc1 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/determanated-instance-methods/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/determanated-instance-methods/output.mjs @@ -1,11 +1,11 @@ import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.function.bind.js"; +import "core-js/modules/es.object.define-getter.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/es.string.replace.js"; -import "core-js/modules/es.string.includes.js"; import "core-js/modules/es.regexp.flags.js"; -import "core-js/modules/es.object.define-getter.js"; -import "core-js/modules/es.function.bind.js"; +import "core-js/modules/es.string.includes.js"; +import "core-js/modules/es.string.replace.js"; var a = []; a.values(); ''.replace(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-class-methods/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-class-methods/output.mjs index 1b6426e1..9f351068 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-class-methods/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-class-methods/output.mjs @@ -1,7 +1,7 @@ import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.object.assign.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.object.assign.js"; var objectClass = Object; var arrayInstance = []; var assignStr = "assign"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-instance-methods/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-instance-methods/output.mjs index 5dc7737a..d881792c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-instance-methods/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/evaluated-instance-methods/output.mjs @@ -1,5 +1,5 @@ -import "core-js/modules/es.array.includes.js"; import "core-js/modules/es.array.find.js"; +import "core-js/modules/es.array.includes.js"; import "core-js/modules/es.object.to-string.js"; var arrayInstance = []; var inclidesStr = "includes"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of-destructure-with/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of-destructure-with/output.mjs index 4a93a2d0..d9e0b2eb 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of-destructure-with/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of-destructure-with/output.mjs @@ -1,6 +1,6 @@ import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/es.string.pad-start.js"; import "core-js/modules/es.string.pad-end.js"; +import "core-js/modules/es.string.pad-start.js"; for (const { padStart } of foo) { diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of/output.mjs index ab6b3f52..5483896d 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/for-of/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; for (let a of b); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/in/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/in/output.mjs index 88e96362..9c918242 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/in/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/in/output.mjs @@ -1,8 +1,8 @@ -import "core-js/modules/es.object.entries.js"; import "core-js/modules/es.array.includes.js"; -import "core-js/modules/es.object.values.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.object.entries.js"; import "core-js/modules/es.object.from-entries.js"; +import "core-js/modules/es.object.values.js"; 'entries' in Object; 'includes' in [1, 2, 3]; 'va' + 'lues' in Object; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-at-proposals-corejs-3.8/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-at-proposals-corejs-3.8/output.mjs index 45079935..4c85de1e 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-at-proposals-corejs-3.8/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-at-proposals-corejs-3.8/output.mjs @@ -2,7 +2,6 @@ import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.array-buffer.slice.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.typed-array.int8-array.js"; -import "core-js/modules/esnext.typed-array.at.js"; import "core-js/modules/es.typed-array.copy-within.js"; import "core-js/modules/es.typed-array.every.js"; import "core-js/modules/es.typed-array.fill.js"; @@ -28,6 +27,7 @@ import "core-js/modules/es.typed-array.to-locale-string.js"; import "core-js/modules/es.typed-array.to-string.js"; import "core-js/modules/esnext.array.at.js"; import "core-js/modules/esnext.string.at.js"; +import "core-js/modules/esnext.typed-array.at.js"; // obscuring instance type let tmp; switch (Math.floor(Math.random() * 3)) { diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-methods/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-methods/output.mjs index 895150b9..85de8b01 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-methods/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/instance-methods/output.mjs @@ -1,25 +1,25 @@ +import "core-js/modules/es.array.copy-within.js"; +import "core-js/modules/es.array.fill.js"; +import "core-js/modules/es.array.find.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.array.includes.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.array.reverse.js"; +import "core-js/modules/es.function.bind.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.array.includes.js"; -import "core-js/modules/es.string.includes.js"; -import "core-js/modules/es.array.find.js"; -import "core-js/modules/es.function.bind.js"; -import "core-js/modules/es.array.fill.js"; -import "core-js/modules/es.string.pad-start.js"; -import "core-js/modules/es.string.pad-end.js"; -import "core-js/modules/es.string.starts-with.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.code-point-at.js"; import "core-js/modules/es.string.ends-with.js"; -import "core-js/modules/es.array.reverse.js"; -import "core-js/modules/es.array.copy-within.js"; -import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/es.string.search.js"; +import "core-js/modules/es.string.includes.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.pad-end.js"; +import "core-js/modules/es.string.pad-start.js"; import "core-js/modules/es.string.replace.js"; +import "core-js/modules/es.string.search.js"; import "core-js/modules/es.string.split.js"; +import "core-js/modules/es.string.starts-with.js"; +import "core-js/modules/web.dom-collections.iterator.js"; Array.from; // static function Map; // top level built-in diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/number-ie-11/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/number-ie-11/output.mjs index 8bfc8e57..9356b7e4 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/number-ie-11/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/number-ie-11/output.mjs @@ -1,5 +1,5 @@ -import "core-js/modules/es.number.parse-float.js"; import "core-js/modules/es.number.constructor.js"; +import "core-js/modules/es.number.parse-float.js"; import "core-js/modules/es.number.parse-int.js"; Number.parseFloat("3.14"); Number.parseInt("10"); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/object-destructuring/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/object-destructuring/output.mjs index 20be9923..e6de4392 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/object-destructuring/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/object-destructuring/output.mjs @@ -1,19 +1,19 @@ +import "core-js/modules/es.array.filter.js"; +import "core-js/modules/es.array.for-each.js"; +import "core-js/modules/es.array.from.js"; +import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.array.of.js"; +import "core-js/modules/es.date.to-string.js"; import "core-js/modules/es.function.bind.js"; import "core-js/modules/es.object.entries.js"; -import "core-js/modules/es.date.to-string.js"; import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.regexp.to-string.js"; +import "core-js/modules/es.string.includes.js"; import "core-js/modules/es.string.iterator.js"; -import "core-js/modules/es.array.iterator.js"; -import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.regexp.exec.js"; import "core-js/modules/es.string.trim.js"; -import "core-js/modules/es.array.filter.js"; -import "core-js/modules/es.string.includes.js"; -import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.array.of.js"; -import "core-js/modules/es.array.for-each.js"; import "core-js/modules/web.dom-collections.for-each.js"; +import "core-js/modules/web.dom-collections.iterator.js"; var bind, toString; var { bind diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-all/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-all/output.mjs index d0e653be..caf4bf72 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-all/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-all/output.mjs @@ -1,6 +1,6 @@ +import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; var p = Promise.resolve(0); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-race/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-race/output.mjs index 9fdbb6c9..18662bee 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-race/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/promise-race/output.mjs @@ -1,6 +1,6 @@ +import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; var p = Promise.resolve(0); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0-proposals/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0-proposals/output.mjs index 0b10d319..65f03f8b 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0-proposals/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0-proposals/output.mjs @@ -1,5 +1,5 @@ -import "core-js/modules/esnext.global-this.js"; import "core-js/modules/es.regexp.exec.js"; +import "core-js/modules/esnext.global-this.js"; import "core-js/modules/esnext.string.match-all.js"; globalThis; foo.matchAll(bar); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0/output.mjs index 0b10d319..65f03f8b 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/proposal-to-stable-corejs-3.0/output.mjs @@ -1,5 +1,5 @@ -import "core-js/modules/esnext.global-this.js"; import "core-js/modules/es.regexp.exec.js"; +import "core-js/modules/esnext.global-this.js"; import "core-js/modules/esnext.string.match-all.js"; globalThis; foo.matchAll(bar); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals-corejs-3.29/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals-corejs-3.29/output.mjs index 55b451f7..f86883e6 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals-corejs-3.29/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals-corejs-3.29/output.mjs @@ -1,19 +1,17 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.symbol.match.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.global-this.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.iterator.js"; import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; -import "core-js/modules/es.global-this.js"; import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; import "core-js/modules/esnext.set.difference.v2.js"; import "core-js/modules/esnext.set.intersection.v2.js"; import "core-js/modules/esnext.set.is-disjoint-from.v2.js"; @@ -21,6 +19,8 @@ import "core-js/modules/esnext.set.is-subset-of.v2.js"; import "core-js/modules/esnext.set.is-superset-of.v2.js"; import "core-js/modules/esnext.set.symmetric-difference.v2.js"; import "core-js/modules/esnext.set.union.v2.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.queue-microtask.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals/output.mjs index 70e50461..1896ecd9 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/shippedProposals/output.mjs @@ -1,19 +1,19 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; +import "core-js/modules/es.symbol.iterator.js"; +import "core-js/modules/es.symbol.match.js"; import "core-js/modules/es.array.from.js"; -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.map.js"; import "core-js/modules/es.object.to-string.js"; -import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/es.symbol.match.js"; -import "core-js/modules/es.string.match.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; -import "core-js/modules/es.symbol.iterator.js"; import "core-js/modules/es.regexp.exec.js"; -import "core-js/modules/web.queue-microtask.js"; -import "core-js/modules/esnext.global-this.js"; import "core-js/modules/es.set.js"; +import "core-js/modules/es.string.iterator.js"; +import "core-js/modules/es.string.match.js"; +import "core-js/modules/esnext.global-this.js"; +import "core-js/modules/web.dom-collections.iterator.js"; +import "core-js/modules/web.queue-microtask.js"; Array.from; // static method Map; // built-in new Promise(); // new builtin diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script-query/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script-query/output.js index 4e710e66..9e45197f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script-query/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script-query/output.js @@ -1,6 +1,6 @@ +require("core-js/modules/es.array.includes.js"); require("core-js/modules/es.object.to-string.js"); require("core-js/modules/es.promise.js"); -require("core-js/modules/es.array.includes.js"); require("foo"); const x = new Promise(resolve => { const p = []; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script/output.js index 4e710e66..9e45197f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/source-type-script/output.js @@ -1,6 +1,6 @@ +require("core-js/modules/es.array.includes.js"); require("core-js/modules/es.object.to-string.js"); require("core-js/modules/es.promise.js"); -require("core-js/modules/es.array.includes.js"); require("foo"); const x = new Promise(resolve => { const p = []; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/spread/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/spread/output.mjs index 6daa5d13..f8123ece 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/spread/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/spread/output.mjs @@ -1,4 +1,4 @@ -import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; +import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; a = [b, ...c]; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/static-methods/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/static-methods/output.mjs index 204983a4..d65ed951 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/static-methods/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/static-methods/output.mjs @@ -1,7 +1,7 @@ -import "core-js/modules/es.object.keys.js"; import "core-js/modules/es.symbol.js"; import "core-js/modules/es.object.assign.js"; import "core-js/modules/es.object.define-property.js"; +import "core-js/modules/es.object.keys.js"; Object.keys(foo); const getOwnPropertySymbols = Object.getOwnPropertySymbols; const { diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator-in/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator-in/output.mjs index 1cfa0d8c..d2a01e9d 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator-in/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator-in/output.mjs @@ -1,8 +1,8 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; import "core-js/modules/es.symbol.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; Symbol.iterator in arr; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator/output.mjs index 0c35d915..54df0371 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/symbol-iterator/output.mjs @@ -1,8 +1,8 @@ +import "core-js/modules/es.symbol.js"; +import "core-js/modules/es.symbol.description.js"; import "core-js/modules/es.symbol.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; -import "core-js/modules/es.symbol.js"; -import "core-js/modules/es.symbol.description.js"; arr[Symbol.iterator](); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/timers/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/timers/output.mjs index a6067bcc..7cc6a2b4 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/timers/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/timers/output.mjs @@ -1,7 +1,7 @@ import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.promise.js"; -import "core-js/modules/web.timers.js"; import "core-js/modules/web.immediate.js"; +import "core-js/modules/web.timers.js"; Promise.resolve().then(it => { setTimeout(foo, 1, 2); setInterval(foo, 1, 2); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-at-proposals-corejs-3.8/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-at-proposals-corejs-3.8/output.mjs index 8803be2d..1238420c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-at-proposals-corejs-3.8/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-at-proposals-corejs-3.8/output.mjs @@ -1,10 +1,7 @@ -import "core-js/modules/esnext.array.at.js"; -import "core-js/modules/esnext.string.at.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.array-buffer.slice.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.typed-array.int8-array.js"; -import "core-js/modules/esnext.typed-array.at.js"; import "core-js/modules/es.typed-array.copy-within.js"; import "core-js/modules/es.typed-array.every.js"; import "core-js/modules/es.typed-array.fill.js"; @@ -28,4 +25,7 @@ import "core-js/modules/es.typed-array.sort.js"; import "core-js/modules/es.typed-array.subarray.js"; import "core-js/modules/es.typed-array.to-locale-string.js"; import "core-js/modules/es.typed-array.to-string.js"; +import "core-js/modules/esnext.array.at.js"; +import "core-js/modules/esnext.string.at.js"; +import "core-js/modules/esnext.typed-array.at.js"; new Int8Array(1).at(-1); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-static/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-static/output.mjs index aa407a0d..33f6402d 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-static/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-global/typed-array-static/output.mjs @@ -1,6 +1,7 @@ import "core-js/modules/es.array.iterator.js"; import "core-js/modules/es.array-buffer.slice.js"; import "core-js/modules/es.object.to-string.js"; +import "core-js/modules/es.typed-array.int8-array.js"; import "core-js/modules/es.typed-array.copy-within.js"; import "core-js/modules/es.typed-array.every.js"; import "core-js/modules/es.typed-array.fill.js"; @@ -25,5 +26,4 @@ import "core-js/modules/es.typed-array.sort.js"; import "core-js/modules/es.typed-array.subarray.js"; import "core-js/modules/es.typed-array.to-locale-string.js"; import "core-js/modules/es.typed-array.to-string.js"; -import "core-js/modules/es.typed-array.int8-array.js"; Int8Array.of(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/aliased-constructors/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/aliased-constructors/output.js index 413e8a60..3fe49ffa 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/aliased-constructors/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/aliased-constructors/output.js @@ -1,6 +1,6 @@ -var _Promise = require("core-js-pure/stable/promise/index.js"); var _Symbol = require("core-js-pure/stable/symbol/index.js"); var _Map = require("core-js-pure/stable/map/index.js"); +var _Promise = require("core-js-pure/stable/promise/index.js"); obj.constructor === Object; obj.constructor === _Promise; _Symbol(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.21/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.21/output.mjs index 53ed064e..3d9fddbc 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.21/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.21/output.mjs @@ -1,18 +1,18 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; +import _btoa from "core-js-pure/stable/btoa.js"; import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _URL from "core-js-pure/stable/url/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.24/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.24/output.mjs index 7e17346c..7f0438d2 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.24/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.24/output.mjs @@ -1,19 +1,19 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; +import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; -import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; +import _btoa from "core-js-pure/stable/btoa.js"; import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _URL from "core-js-pure/stable/url/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.27/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.27/output.mjs index 800ee2a6..261623f5 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.27/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.27/output.mjs @@ -1,22 +1,22 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.28/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.28/output.mjs index 18071889..e2597b49 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.28/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.28/output.mjs @@ -1,22 +1,22 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); [].asIndexedPairs(); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.30/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.30/output.mjs index d8b93226..dcd99a57 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.30/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.30/output.mjs @@ -1,24 +1,24 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; +import _Promise from "core-js-pure/stable/promise/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; import _URL$canParse from "core-js-pure/stable/url/can-parse.js"; -import _Promise from "core-js-pure/stable/promise/index.js"; import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.31/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.31/output.mjs index e64425c3..6553b8e3 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.31/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.31/output.mjs @@ -1,25 +1,25 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _Promise from "core-js-pure/stable/promise/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/stable/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/stable/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; import _URL$canParse from "core-js-pure/stable/url/can-parse.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; -import _Promise from "core-js-pure/stable/promise/index.js"; import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.32/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.32/output.mjs index 42fa0a13..13f28cb3 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.32/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.32/output.mjs @@ -1,25 +1,25 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _Promise from "core-js-pure/stable/promise/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/stable/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/stable/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; import _URL$canParse from "core-js-pure/stable/url/can-parse.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; -import _Promise from "core-js-pure/stable/promise/index.js"; import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.33/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.33/output.mjs index eae3a948..22449c24 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.33/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.33/output.mjs @@ -1,25 +1,25 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _Promise from "core-js-pure/stable/promise/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/stable/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/stable/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; import _URL$canParse from "core-js-pure/stable/url/can-parse.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; -import _Promise from "core-js-pure/stable/promise/index.js"; import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.34/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.34/output.mjs index ce4ff278..658ab3a3 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.34/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-corejs-3.34/output.mjs @@ -1,25 +1,25 @@ var _context, _context2, _context3, _context4, _context5; +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/stable/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/stable/instance/find-last-index.js"; import _forEachInstanceProperty from "core-js-pure/stable/instance/for-each.js"; import _mapInstanceProperty from "core-js-pure/stable/instance/map.js"; -import _filterInstanceProperty from "core-js-pure/stable/instance/filter.js"; -import _Map from "core-js-pure/stable/map/index.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; -import _Symbol$matchAll from "core-js-pure/stable/symbol/match-all.js"; -import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; -import _URL from "core-js-pure/stable/url/index.js"; import _pushInstanceProperty from "core-js-pure/stable/instance/push.js"; -import _DOMException from "core-js-pure/stable/dom-exception/index.js"; -import _structuredClone from "core-js-pure/stable/structured-clone.js"; -import _btoa from "core-js-pure/stable/btoa.js"; import _withInstanceProperty from "core-js-pure/stable/instance/with.js"; +import _Map from "core-js-pure/stable/map/index.js"; +import _Object$groupBy from "core-js-pure/stable/object/group-by.js"; +import _Promise from "core-js-pure/stable/promise/index.js"; import _isWellFormedInstanceProperty from "core-js-pure/stable/instance/is-well-formed.js"; +import _replaceAllInstanceProperty from "core-js-pure/stable/instance/replace-all.js"; import _toWellFormedInstanceProperty from "core-js-pure/stable/instance/to-well-formed.js"; +import _btoa from "core-js-pure/stable/btoa.js"; +import _DOMException from "core-js-pure/stable/dom-exception/index.js"; import _self from "core-js-pure/stable/self.js"; +import _structuredClone from "core-js-pure/stable/structured-clone.js"; +import _URL from "core-js-pure/stable/url/index.js"; import _URL$canParse from "core-js-pure/stable/url/can-parse.js"; -import _Object$groupBy from "core-js-pure/stable/object/group-by.js"; -import _Promise from "core-js-pure/stable/promise/index.js"; import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.16/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.16/output.mjs index 82cc7041..46b99b0c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.16/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.16/output.mjs @@ -1,15 +1,15 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.20/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.20/output.mjs index 69d91709..8d238f7a 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.20/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.20/output.mjs @@ -1,23 +1,23 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; import _structuredClone from "core-js-pure/features/structured-clone.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.24/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.24/output.mjs index 79f7c021..7b922f95 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.24/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.24/output.mjs @@ -1,24 +1,24 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; +import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; -import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; import _structuredClone from "core-js-pure/features/structured-clone.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.27/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.27/output.mjs index 01fb16d5..d8864bab 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.27/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.27/output.mjs @@ -1,31 +1,31 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; +import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; +import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; +import _SuppressedError from "core-js-pure/features/suppressed-error.js"; import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; +import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator from "core-js-pure/features/iterator/index.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; -import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; import _structuredClone from "core-js-pure/features/structured-clone.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; -import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; -import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; -import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; -import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; -import _Iterator from "core-js-pure/features/iterator/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.28/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.28/output.mjs index d93aa1b2..ef4d524f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.28/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.28/output.mjs @@ -1,37 +1,37 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.30/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.30/output.mjs index d97cbfe1..88c78c5f 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.30/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.30/output.mjs @@ -1,37 +1,37 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; import _URL$canParse from "core-js-pure/features/url/can-parse.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.31/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.31/output.mjs index 7557fe79..db896d59 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.31/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.31/output.mjs @@ -1,41 +1,41 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Number$range from "core-js-pure/features/number/range.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; +import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; -import _URL$canParse from "core-js-pure/features/url/can-parse.js"; import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; -import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; +import _URL$canParse from "core-js-pure/features/url/can-parse.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.32/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.32/output.mjs index dde3b767..6a6d357e 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.32/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.32/output.mjs @@ -1,42 +1,42 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; +import _Math$f16round from "core-js-pure/features/math/f16round.js"; +import _Number$range from "core-js-pure/features/number/range.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; +import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; -import _URL$canParse from "core-js-pure/features/url/can-parse.js"; import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; -import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; -import _Math$f16round from "core-js-pure/features/math/f16round.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; +import _URL$canParse from "core-js-pure/features/url/can-parse.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.33/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.33/output.mjs index cea6bdd9..5cd24a8c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.33/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.33/output.mjs @@ -1,43 +1,43 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; -import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; -import _URL$canParse from "core-js-pure/features/url/can-parse.js"; -import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; -import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; import _Math$f16round from "core-js-pure/features/math/f16round.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _RegExp$escape from "core-js-pure/features/regexp/escape.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; +import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; +import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; +import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; +import _URL$canParse from "core-js-pure/features/url/can-parse.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.34/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.34/output.mjs index cea6bdd9..5cd24a8c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.34/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-chrome-90-corejs-3.34/output.mjs @@ -1,43 +1,43 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; -import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; -import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; -import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; -import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; -import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; -import _structuredClone from "core-js-pure/features/structured-clone.js"; import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Object$groupBy from "core-js-pure/features/object/group-by.js"; import _isWellFormedInstanceProperty from "core-js-pure/features/instance/is-well-formed.js"; import _toWellFormedInstanceProperty from "core-js-pure/features/instance/to-well-formed.js"; -import _String$dedent from "core-js-pure/features/string/dedent.js"; import _SuppressedError from "core-js-pure/features/suppressed-error.js"; -import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; import _AsyncDisposableStack from "core-js-pure/features/async-disposable-stack/index.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _BigInt$range from "core-js-pure/features/bigint/range.js"; +import _DisposableStack from "core-js-pure/features/disposable-stack/index.js"; +import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _Iterator$range from "core-js-pure/features/iterator/range.js"; -import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$isRawJSON from "core-js-pure/features/json/is-raw-json.js"; +import _JSON$parse from "core-js-pure/features/json/parse.js"; import _JSON$rawJSON from "core-js-pure/features/json/raw-json.js"; -import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; -import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; -import _demethodizeInstanceProperty from "core-js-pure/features/instance/demethodize.js"; -import _URL$canParse from "core-js-pure/features/url/can-parse.js"; -import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; -import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; -import _Object$groupBy from "core-js-pure/features/object/group-by.js"; +import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; import _Math$f16round from "core-js-pure/features/math/f16round.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _RegExp$escape from "core-js-pure/features/regexp/escape.js"; +import _String$dedent from "core-js-pure/features/string/dedent.js"; +import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; +import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js"; +import _Symbol$isRegistered from "core-js-pure/features/symbol/is-registered.js"; +import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-known-symbol.js"; +import _Symbol$isWellKnown from "core-js-pure/features/symbol/is-well-known.js"; +import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; +import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; +import _structuredClone from "core-js-pure/features/structured-clone.js"; +import _URL$canParse from "core-js-pure/features/url/can-parse.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-corejs-3.20/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-corejs-3.20/output.mjs index 2708d86a..1474dec8 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-corejs-3.20/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/all-proposals-corejs-3.20/output.mjs @@ -1,32 +1,32 @@ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12; +import _Symbol from "core-js-pure/features/symbol/index.js"; +import _Symbol$matchAll from "core-js-pure/features/symbol/match-all.js"; +import _filterInstanceProperty from "core-js-pure/features/instance/filter.js"; import _findLastInstanceProperty from "core-js-pure/features/instance/find-last.js"; import _findLastIndexInstanceProperty from "core-js-pure/features/instance/find-last-index.js"; -import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; import _forEachInstanceProperty from "core-js-pure/features/instance/for-each.js"; -import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _mapInstanceProperty from "core-js-pure/features/instance/map.js"; +import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _Map from "core-js-pure/features/map/index.js"; +import _replaceAllInstanceProperty from "core-js-pure/features/instance/replace-all.js"; import _groupByInstanceProperty from "core-js-pure/features/instance/group-by.js"; -import _filterInstanceProperty from "core-js-pure/features/instance/filter.js"; -import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; +import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; +import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; import _uniqueByInstanceProperty from "core-js-pure/features/instance/unique-by.js"; -import _Number$range from "core-js-pure/features/number/range.js"; +import _asIndexedPairsInstanceProperty from "core-js-pure/features/instance/asIndexedPairs.js"; +import _AsyncIterator$from from "core-js-pure/features/async-iterator/from.js"; import _BigInt$range from "core-js-pure/features/bigint/range.js"; -import _Array$isTemplateObject from "core-js-pure/features/array/is-template-object.js"; +import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; +import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; +import _Iterator$from from "core-js-pure/features/iterator/from.js"; import _emplaceInstanceProperty from "core-js-pure/features/instance/emplace.js"; -import _Map from "core-js-pure/features/map/index.js"; +import _Number$range from "core-js-pure/features/number/range.js"; import _Symbol$asyncDispose from "core-js-pure/features/symbol/async-dispose.js"; import _Symbol$matcher from "core-js-pure/features/symbol/matcher.js"; -import _Symbol$matchAll from "core-js-pure/features/symbol/match-all.js"; import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; -import _replaceAllInstanceProperty from "core-js-pure/features/instance/replace-all.js"; -import _Symbol from "core-js-pure/features/symbol/index.js"; -import _URL from "core-js-pure/features/url/index.js"; -import _groupByToMapInstanceProperty from "core-js-pure/features/instance/group-by-to-map.js"; -import _unThisInstanceProperty from "core-js-pure/features/instance/un-this.js"; -import _Function$isConstructor from "core-js-pure/features/function/is-constructor.js"; import _DOMException from "core-js-pure/features/dom-exception/index.js"; import _structuredClone from "core-js-pure/features/structured-clone.js"; -import _withInstanceProperty from "core-js-pure/features/instance/with.js"; +import _URL from "core-js-pure/features/url/index.js"; _findLastInstanceProperty(_context = []).call(_context, fn); _findLastIndexInstanceProperty(_context2 = []).call(_context2, fn); _asIndexedPairsInstanceProperty(_context3 = []).call(_context3); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals-proposals/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals-proposals/output.js index cdde8e73..0a6908dd 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals-proposals/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals-proposals/output.js @@ -1,23 +1,23 @@ +var _Symbol = require("core-js-pure/features/symbol/index.js"); var _AggregateError = require("core-js-pure/features/aggregate-error.js"); +var _globalThis = require("core-js-pure/features/global-this.js"); var _Map = require("core-js-pure/features/map/index.js"); -var _Observable = require("core-js-pure/features/observable/index.js"); +var _parseFloat = require("core-js-pure/features/parse-float.js"); +var _parseInt = require("core-js-pure/features/parse-int.js"); var _Promise = require("core-js-pure/features/promise/index.js"); var _Set = require("core-js-pure/features/set/index.js"); -var _Symbol = require("core-js-pure/features/symbol/index.js"); -var _URL = require("core-js-pure/features/url/index.js"); -var _URLSearchParams = require("core-js-pure/features/url-search-params/index.js"); var _WeakMap = require("core-js-pure/features/weak-map/index.js"); var _WeakSet = require("core-js-pure/features/weak-set/index.js"); -var _clearImmediate = require("core-js-pure/features/clear-immediate.js"); var _compositeKey = require("core-js-pure/features/composite-key.js"); var _compositeSymbol = require("core-js-pure/features/composite-symbol.js"); -var _globalThis = require("core-js-pure/features/global-this.js"); -var _parseFloat = require("core-js-pure/features/parse-float.js"); -var _parseInt = require("core-js-pure/features/parse-int.js"); -var _queueMicrotask = require("core-js-pure/features/queue-microtask.js"); +var _Observable = require("core-js-pure/features/observable/index.js"); +var _clearImmediate = require("core-js-pure/features/clear-immediate.js"); var _setImmediate = require("core-js-pure/features/set-immediate.js"); +var _queueMicrotask = require("core-js-pure/features/queue-microtask.js"); var _setInterval = require("core-js-pure/features/set-interval.js"); var _setTimeout = require("core-js-pure/features/set-timeout.js"); +var _URL = require("core-js-pure/features/url/index.js"); +var _URLSearchParams = require("core-js-pure/features/url-search-params/index.js"); _AggregateError; _Map; _Observable; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals/output.js index 86b5737e..3d43b4eb 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-globals/output.js @@ -1,20 +1,20 @@ +var _Symbol = require("core-js-pure/stable/symbol/index.js"); var _AggregateError = require("core-js-pure/features/aggregate-error.js"); +var _globalThis = require("core-js-pure/features/global-this.js"); var _Map = require("core-js-pure/stable/map/index.js"); +var _parseFloat = require("core-js-pure/stable/parse-float.js"); +var _parseInt = require("core-js-pure/stable/parse-int.js"); var _Promise = require("core-js-pure/stable/promise/index.js"); var _Set = require("core-js-pure/stable/set/index.js"); -var _Symbol = require("core-js-pure/stable/symbol/index.js"); -var _URL = require("core-js-pure/stable/url/index.js"); -var _URLSearchParams = require("core-js-pure/stable/url-search-params/index.js"); var _WeakMap = require("core-js-pure/stable/weak-map/index.js"); var _WeakSet = require("core-js-pure/stable/weak-set/index.js"); var _clearImmediate = require("core-js-pure/stable/clear-immediate.js"); -var _globalThis = require("core-js-pure/features/global-this.js"); -var _parseFloat = require("core-js-pure/stable/parse-float.js"); -var _parseInt = require("core-js-pure/stable/parse-int.js"); -var _queueMicrotask = require("core-js-pure/stable/queue-microtask.js"); var _setImmediate = require("core-js-pure/stable/set-immediate.js"); +var _queueMicrotask = require("core-js-pure/stable/queue-microtask.js"); var _setInterval = require("core-js-pure/stable/set-interval.js"); var _setTimeout = require("core-js-pure/stable/set-timeout.js"); +var _URL = require("core-js-pure/stable/url/index.js"); +var _URLSearchParams = require("core-js-pure/stable/url-search-params/index.js"); _AggregateError; _Map; Observable; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods-proposals/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods-proposals/output.js index 3eb39ca6..7fa6f4fd 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods-proposals/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods-proposals/output.js @@ -1,44 +1,44 @@ -var _atInstanceProperty = require("core-js-pure/features/instance/at.js"); -var _bindInstanceProperty = require("core-js-pure/features/instance/bind.js"); -var _codePointAtInstanceProperty = require("core-js-pure/features/instance/code-point-at.js"); -var _codePointsInstanceProperty = require("core-js-pure/features/instance/code-points.js"); var _concatInstanceProperty = require("core-js-pure/features/instance/concat.js"); var _copyWithinInstanceProperty = require("core-js-pure/features/instance/copy-within.js"); -var _endsWithInstanceProperty = require("core-js-pure/features/instance/ends-with.js"); -var _entriesInstanceProperty = require("core-js-pure/features/instance/entries.js"); var _everyInstanceProperty = require("core-js-pure/features/instance/every.js"); var _fillInstanceProperty = require("core-js-pure/features/instance/fill.js"); var _filterInstanceProperty = require("core-js-pure/features/instance/filter.js"); var _findInstanceProperty = require("core-js-pure/features/instance/find.js"); var _findIndexInstanceProperty = require("core-js-pure/features/instance/find-index.js"); -var _flagsInstanceProperty = require("core-js-pure/features/instance/flags.js"); -var _flatMapInstanceProperty = require("core-js-pure/features/instance/flat-map.js"); var _flatInstanceProperty = require("core-js-pure/features/instance/flat.js"); +var _flatMapInstanceProperty = require("core-js-pure/features/instance/flat-map.js"); var _forEachInstanceProperty = require("core-js-pure/features/instance/for-each.js"); var _includesInstanceProperty = require("core-js-pure/features/instance/includes.js"); var _indexOfInstanceProperty = require("core-js-pure/features/instance/index-of.js"); var _keysInstanceProperty = require("core-js-pure/features/instance/keys.js"); +var _valuesInstanceProperty = require("core-js-pure/features/instance/values.js"); var _lastIndexOfInstanceProperty = require("core-js-pure/features/instance/last-index-of.js"); var _mapInstanceProperty = require("core-js-pure/features/instance/map.js"); -var _matchAllInstanceProperty = require("core-js-pure/features/instance/match-all.js"); -var _padEndInstanceProperty = require("core-js-pure/features/instance/pad-end.js"); -var _padStartInstanceProperty = require("core-js-pure/features/instance/pad-start.js"); var _reduceInstanceProperty = require("core-js-pure/features/instance/reduce.js"); var _reduceRightInstanceProperty = require("core-js-pure/features/instance/reduce-right.js"); -var _repeatInstanceProperty = require("core-js-pure/features/instance/repeat.js"); -var _replaceAllInstanceProperty = require("core-js-pure/features/instance/replace-all.js"); var _reverseInstanceProperty = require("core-js-pure/features/instance/reverse.js"); var _sliceInstanceProperty = require("core-js-pure/features/instance/slice.js"); var _someInstanceProperty = require("core-js-pure/features/instance/some.js"); var _sortInstanceProperty = require("core-js-pure/features/instance/sort.js"); var _spliceInstanceProperty = require("core-js-pure/features/instance/splice.js"); +var _bindInstanceProperty = require("core-js-pure/features/instance/bind.js"); +var _entriesInstanceProperty = require("core-js-pure/features/instance/entries.js"); +var _flagsInstanceProperty = require("core-js-pure/features/instance/flags.js"); +var _codePointAtInstanceProperty = require("core-js-pure/features/instance/code-point-at.js"); +var _endsWithInstanceProperty = require("core-js-pure/features/instance/ends-with.js"); +var _matchAllInstanceProperty = require("core-js-pure/features/instance/match-all.js"); +var _padEndInstanceProperty = require("core-js-pure/features/instance/pad-end.js"); +var _padStartInstanceProperty = require("core-js-pure/features/instance/pad-start.js"); +var _repeatInstanceProperty = require("core-js-pure/features/instance/repeat.js"); +var _replaceAllInstanceProperty = require("core-js-pure/features/instance/replace-all.js"); var _startsWithInstanceProperty = require("core-js-pure/features/instance/starts-with.js"); var _trimInstanceProperty = require("core-js-pure/features/instance/trim.js"); var _trimEndInstanceProperty = require("core-js-pure/features/instance/trim-end.js"); -var _trimLeftInstanceProperty = require("core-js-pure/features/instance/trim-left.js"); var _trimRightInstanceProperty = require("core-js-pure/features/instance/trim-right.js"); +var _trimLeftInstanceProperty = require("core-js-pure/features/instance/trim-left.js"); var _trimStartInstanceProperty = require("core-js-pure/features/instance/trim-start.js"); -var _valuesInstanceProperty = require("core-js-pure/features/instance/values.js"); +var _atInstanceProperty = require("core-js-pure/features/instance/at.js"); +var _codePointsInstanceProperty = require("core-js-pure/features/instance/code-points.js"); _atInstanceProperty(object); _bindInstanceProperty(object); _codePointAtInstanceProperty(object); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods/output.js index 1f33ae43..aedb57dd 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-instance-methods/output.js @@ -1,42 +1,42 @@ -var _bindInstanceProperty = require("core-js-pure/stable/instance/bind.js"); -var _codePointAtInstanceProperty = require("core-js-pure/stable/instance/code-point-at.js"); var _concatInstanceProperty = require("core-js-pure/stable/instance/concat.js"); var _copyWithinInstanceProperty = require("core-js-pure/stable/instance/copy-within.js"); -var _endsWithInstanceProperty = require("core-js-pure/stable/instance/ends-with.js"); -var _entriesInstanceProperty = require("core-js-pure/stable/instance/entries.js"); var _everyInstanceProperty = require("core-js-pure/stable/instance/every.js"); var _fillInstanceProperty = require("core-js-pure/stable/instance/fill.js"); var _filterInstanceProperty = require("core-js-pure/stable/instance/filter.js"); var _findInstanceProperty = require("core-js-pure/stable/instance/find.js"); var _findIndexInstanceProperty = require("core-js-pure/stable/instance/find-index.js"); -var _flagsInstanceProperty = require("core-js-pure/stable/instance/flags.js"); -var _flatMapInstanceProperty = require("core-js-pure/stable/instance/flat-map.js"); var _flatInstanceProperty = require("core-js-pure/stable/instance/flat.js"); +var _flatMapInstanceProperty = require("core-js-pure/stable/instance/flat-map.js"); var _forEachInstanceProperty = require("core-js-pure/stable/instance/for-each.js"); var _includesInstanceProperty = require("core-js-pure/stable/instance/includes.js"); var _indexOfInstanceProperty = require("core-js-pure/stable/instance/index-of.js"); var _keysInstanceProperty = require("core-js-pure/stable/instance/keys.js"); +var _valuesInstanceProperty = require("core-js-pure/stable/instance/values.js"); var _lastIndexOfInstanceProperty = require("core-js-pure/stable/instance/last-index-of.js"); var _mapInstanceProperty = require("core-js-pure/stable/instance/map.js"); -var _matchAllInstanceProperty = require("core-js-pure/features/instance/match-all.js"); -var _padEndInstanceProperty = require("core-js-pure/stable/instance/pad-end.js"); -var _padStartInstanceProperty = require("core-js-pure/stable/instance/pad-start.js"); var _reduceInstanceProperty = require("core-js-pure/stable/instance/reduce.js"); var _reduceRightInstanceProperty = require("core-js-pure/stable/instance/reduce-right.js"); -var _repeatInstanceProperty = require("core-js-pure/stable/instance/repeat.js"); -var _replaceAllInstanceProperty = require("core-js-pure/features/instance/replace-all.js"); var _reverseInstanceProperty = require("core-js-pure/stable/instance/reverse.js"); var _sliceInstanceProperty = require("core-js-pure/stable/instance/slice.js"); var _someInstanceProperty = require("core-js-pure/stable/instance/some.js"); var _sortInstanceProperty = require("core-js-pure/stable/instance/sort.js"); var _spliceInstanceProperty = require("core-js-pure/stable/instance/splice.js"); +var _bindInstanceProperty = require("core-js-pure/stable/instance/bind.js"); +var _entriesInstanceProperty = require("core-js-pure/stable/instance/entries.js"); +var _flagsInstanceProperty = require("core-js-pure/stable/instance/flags.js"); +var _codePointAtInstanceProperty = require("core-js-pure/stable/instance/code-point-at.js"); +var _endsWithInstanceProperty = require("core-js-pure/stable/instance/ends-with.js"); +var _matchAllInstanceProperty = require("core-js-pure/features/instance/match-all.js"); +var _padEndInstanceProperty = require("core-js-pure/stable/instance/pad-end.js"); +var _padStartInstanceProperty = require("core-js-pure/stable/instance/pad-start.js"); +var _repeatInstanceProperty = require("core-js-pure/stable/instance/repeat.js"); +var _replaceAllInstanceProperty = require("core-js-pure/features/instance/replace-all.js"); var _startsWithInstanceProperty = require("core-js-pure/stable/instance/starts-with.js"); var _trimInstanceProperty = require("core-js-pure/stable/instance/trim.js"); var _trimEndInstanceProperty = require("core-js-pure/stable/instance/trim-end.js"); -var _trimLeftInstanceProperty = require("core-js-pure/stable/instance/trim-left.js"); var _trimRightInstanceProperty = require("core-js-pure/stable/instance/trim-right.js"); +var _trimLeftInstanceProperty = require("core-js-pure/stable/instance/trim-left.js"); var _trimStartInstanceProperty = require("core-js-pure/stable/instance/trim-start.js"); -var _valuesInstanceProperty = require("core-js-pure/stable/instance/values.js"); object.at; _bindInstanceProperty(object); _codePointAtInstanceProperty(object); diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js index 5ca9f715..458e2ede 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods-proposals/output.js @@ -1,46 +1,48 @@ +var _JSON$stringify = require("core-js-pure/features/json/stringify.js"); +var _Object$getOwnPropertySymbols = require("core-js-pure/features/object/get-own-property-symbols.js"); +var _Symbol$for = require("core-js-pure/features/symbol/for.js"); +var _Symbol$keyFor = require("core-js-pure/features/symbol/key-for.js"); +var _Symbol = require("core-js-pure/features/symbol/index.js"); +var _Symbol$asyncIterator = require("core-js-pure/features/symbol/async-iterator.js"); +var _Symbol$hasInstance = require("core-js-pure/features/symbol/has-instance.js"); +var _Symbol$isConcatSpreadable = require("core-js-pure/features/symbol/is-concat-spreadable.js"); +var _Symbol$iterator = require("core-js-pure/features/symbol/iterator.js"); +var _Symbol$match = require("core-js-pure/features/symbol/match.js"); +var _Symbol$replace = require("core-js-pure/features/symbol/replace.js"); +var _Symbol$search = require("core-js-pure/features/symbol/search.js"); +var _Symbol$species = require("core-js-pure/features/symbol/species.js"); +var _Symbol$split = require("core-js-pure/features/symbol/split.js"); +var _Symbol$toPrimitive = require("core-js-pure/features/symbol/to-primitive.js"); +var _Symbol$toStringTag = require("core-js-pure/features/symbol/to-string-tag.js"); +var _Symbol$unscopables = require("core-js-pure/features/symbol/unscopables.js"); var _Array$from = require("core-js-pure/features/array/from.js"); var _Array$isArray = require("core-js-pure/features/array/is-array.js"); var _Array$of = require("core-js-pure/features/array/of.js"); var _Date$now = require("core-js-pure/features/date/now.js"); -var _JSON$stringify = require("core-js-pure/features/json/stringify.js"); -var _Math$DEG_PER_RAD = require("core-js-pure/features/math/deg-per-rad.js"); -var _Math$RAD_PER_DEG = require("core-js-pure/features/math/rad-per-deg.js"); var _Math$acosh = require("core-js-pure/features/math/acosh.js"); var _Math$asinh = require("core-js-pure/features/math/asinh.js"); var _Math$atanh = require("core-js-pure/features/math/atanh.js"); var _Math$cbrt = require("core-js-pure/features/math/cbrt.js"); -var _Math$clamp = require("core-js-pure/features/math/clamp.js"); var _Math$clz = require("core-js-pure/features/math/clz32.js"); var _Math$cosh = require("core-js-pure/features/math/cosh.js"); -var _Math$degrees = require("core-js-pure/features/math/degrees.js"); var _Math$expm = require("core-js-pure/features/math/expm1.js"); var _Math$fround = require("core-js-pure/features/math/fround.js"); -var _Math$fscale = require("core-js-pure/features/math/fscale.js"); var _Math$hypot = require("core-js-pure/features/math/hypot.js"); -var _Math$iaddh = require("core-js-pure/features/math/iaddh.js"); var _Math$imul = require("core-js-pure/features/math/imul.js"); -var _Math$imulh = require("core-js-pure/features/math/imulh.js"); -var _Math$isubh = require("core-js-pure/features/math/isubh.js"); var _Math$log = require("core-js-pure/features/math/log10.js"); var _Math$log1p = require("core-js-pure/features/math/log1p.js"); var _Math$log2 = require("core-js-pure/features/math/log2.js"); -var _Math$radians = require("core-js-pure/features/math/radians.js"); -var _Math$scale = require("core-js-pure/features/math/scale.js"); -var _Math$seededPRNG = require("core-js-pure/features/math/seeded-prng.js"); var _Math$sign = require("core-js-pure/features/math/sign.js"); -var _Math$signbit = require("core-js-pure/features/math/signbit.js"); var _Math$sinh = require("core-js-pure/features/math/sinh.js"); var _Math$tanh = require("core-js-pure/features/math/tanh.js"); var _Math$trunc = require("core-js-pure/features/math/trunc.js"); -var _Math$umulh = require("core-js-pure/features/math/umulh.js"); var _Number$EPSILON = require("core-js-pure/features/number/epsilon.js"); -var _Number$MAX_SAFE_INTEGER = require("core-js-pure/features/number/max-safe-integer.js"); -var _Number$MIN_SAFE_INTEGER = require("core-js-pure/features/number/min-safe-integer.js"); -var _Number$fromString = require("core-js-pure/features/number/from-string.js"); var _Number$isFinite = require("core-js-pure/features/number/is-finite.js"); var _Number$isInteger = require("core-js-pure/features/number/is-integer.js"); var _Number$isNaN = require("core-js-pure/features/number/is-nan.js"); var _Number$isSafeInteger = require("core-js-pure/features/number/is-safe-integer.js"); +var _Number$MAX_SAFE_INTEGER = require("core-js-pure/features/number/max-safe-integer.js"); +var _Number$MIN_SAFE_INTEGER = require("core-js-pure/features/number/min-safe-integer.js"); var _Number$parseFloat = require("core-js-pure/features/number/parse-float.js"); var _Number$parseInt = require("core-js-pure/features/number/parse-int.js"); var _Object$assign = require("core-js-pure/features/object/assign.js"); @@ -53,12 +55,11 @@ var _Object$fromEntries = require("core-js-pure/features/object/from-entries.js" var _Object$getOwnPropertyDescriptor = require("core-js-pure/features/object/get-own-property-descriptor.js"); var _Object$getOwnPropertyDescriptors = require("core-js-pure/features/object/get-own-property-descriptors.js"); var _Object$getOwnPropertyNames = require("core-js-pure/features/object/get-own-property-names.js"); -var _Object$getOwnPropertySymbols = require("core-js-pure/features/object/get-own-property-symbols.js"); var _Object$getPrototypeOf = require("core-js-pure/features/object/get-prototype-of.js"); +var _Object$is = require("core-js-pure/features/object/is.js"); var _Object$isExtensible = require("core-js-pure/features/object/is-extensible.js"); var _Object$isFrozen = require("core-js-pure/features/object/is-frozen.js"); var _Object$isSealed = require("core-js-pure/features/object/is-sealed.js"); -var _Object$is = require("core-js-pure/features/object/is.js"); var _Object$keys = require("core-js-pure/features/object/keys.js"); var _Object$preventExtensions = require("core-js-pure/features/object/prevent-extensions.js"); var _Object$seal = require("core-js-pure/features/object/seal.js"); @@ -66,46 +67,45 @@ var _Object$setPrototypeOf = require("core-js-pure/features/object/set-prototype var _Object$values = require("core-js-pure/features/object/values.js"); var _Reflect$apply = require("core-js-pure/features/reflect/apply.js"); var _Reflect$construct = require("core-js-pure/features/reflect/construct.js"); -var _Reflect$defineMetadata = require("core-js-pure/features/reflect/define-metadata.js"); var _Reflect$defineProperty = require("core-js-pure/features/reflect/define-property.js"); -var _Reflect$deleteMetadata = require("core-js-pure/features/reflect/delete-metadata.js"); var _Reflect$deleteProperty = require("core-js-pure/features/reflect/delete-property.js"); -var _Reflect$getMetadata = require("core-js-pure/features/reflect/get-metadata.js"); -var _Reflect$getMetadataKeys = require("core-js-pure/features/reflect/get-metadata-keys.js"); -var _Reflect$getOwnMetadata = require("core-js-pure/features/reflect/get-own-metadata.js"); -var _Reflect$getOwnMetadataKeys = require("core-js-pure/features/reflect/get-own-metadata-keys.js"); +var _Reflect$get = require("core-js-pure/features/reflect/get.js"); var _Reflect$getOwnPropertyDescriptor = require("core-js-pure/features/reflect/get-own-property-descriptor.js"); var _Reflect$getPrototypeOf = require("core-js-pure/features/reflect/get-prototype-of.js"); -var _Reflect$get = require("core-js-pure/features/reflect/get.js"); var _Reflect$has = require("core-js-pure/features/reflect/has.js"); -var _Reflect$hasMetadata = require("core-js-pure/features/reflect/has-metadata.js"); -var _Reflect$hasOwnMetadata = require("core-js-pure/features/reflect/has-own-metadata.js"); var _Reflect$isExtensible = require("core-js-pure/features/reflect/is-extensible.js"); -var _Reflect$metadata = require("core-js-pure/features/reflect/metadata.js"); var _Reflect$ownKeys = require("core-js-pure/features/reflect/own-keys.js"); var _Reflect$preventExtensions = require("core-js-pure/features/reflect/prevent-extensions.js"); var _Reflect$set = require("core-js-pure/features/reflect/set.js"); var _Reflect$setPrototypeOf = require("core-js-pure/features/reflect/set-prototype-of.js"); var _String$fromCodePoint = require("core-js-pure/features/string/from-code-point.js"); var _String$raw = require("core-js-pure/features/string/raw.js"); -var _Symbol$asyncIterator = require("core-js-pure/features/symbol/async-iterator.js"); +var _Math$clamp = require("core-js-pure/features/math/clamp.js"); +var _Math$DEG_PER_RAD = require("core-js-pure/features/math/deg-per-rad.js"); +var _Math$degrees = require("core-js-pure/features/math/degrees.js"); +var _Math$fscale = require("core-js-pure/features/math/fscale.js"); +var _Math$iaddh = require("core-js-pure/features/math/iaddh.js"); +var _Math$imulh = require("core-js-pure/features/math/imulh.js"); +var _Math$isubh = require("core-js-pure/features/math/isubh.js"); +var _Math$RAD_PER_DEG = require("core-js-pure/features/math/rad-per-deg.js"); +var _Math$radians = require("core-js-pure/features/math/radians.js"); +var _Math$scale = require("core-js-pure/features/math/scale.js"); +var _Math$seededPRNG = require("core-js-pure/features/math/seeded-prng.js"); +var _Math$signbit = require("core-js-pure/features/math/signbit.js"); +var _Math$umulh = require("core-js-pure/features/math/umulh.js"); +var _Number$fromString = require("core-js-pure/features/number/from-string.js"); +var _Reflect$defineMetadata = require("core-js-pure/features/reflect/define-metadata.js"); +var _Reflect$deleteMetadata = require("core-js-pure/features/reflect/delete-metadata.js"); +var _Reflect$getMetadata = require("core-js-pure/features/reflect/get-metadata.js"); +var _Reflect$getMetadataKeys = require("core-js-pure/features/reflect/get-metadata-keys.js"); +var _Reflect$getOwnMetadata = require("core-js-pure/features/reflect/get-own-metadata.js"); +var _Reflect$getOwnMetadataKeys = require("core-js-pure/features/reflect/get-own-metadata-keys.js"); +var _Reflect$hasMetadata = require("core-js-pure/features/reflect/has-metadata.js"); +var _Reflect$hasOwnMetadata = require("core-js-pure/features/reflect/has-own-metadata.js"); +var _Reflect$metadata = require("core-js-pure/features/reflect/metadata.js"); var _Symbol$dispose = require("core-js-pure/features/symbol/dispose.js"); -var _Symbol$for = require("core-js-pure/features/symbol/for.js"); -var _Symbol$hasInstance = require("core-js-pure/features/symbol/has-instance.js"); -var _Symbol$isConcatSpreadable = require("core-js-pure/features/symbol/is-concat-spreadable.js"); -var _Symbol$iterator = require("core-js-pure/features/symbol/iterator.js"); -var _Symbol$keyFor = require("core-js-pure/features/symbol/key-for.js"); -var _Symbol$match = require("core-js-pure/features/symbol/match.js"); var _Symbol$observable = require("core-js-pure/features/symbol/observable.js"); var _Symbol$patternMatch = require("core-js-pure/features/symbol/pattern-match.js"); -var _Symbol$replace = require("core-js-pure/features/symbol/replace.js"); -var _Symbol$search = require("core-js-pure/features/symbol/search.js"); -var _Symbol$species = require("core-js-pure/features/symbol/species.js"); -var _Symbol$split = require("core-js-pure/features/symbol/split.js"); -var _Symbol$toPrimitive = require("core-js-pure/features/symbol/to-primitive.js"); -var _Symbol$toStringTag = require("core-js-pure/features/symbol/to-string-tag.js"); -var _Symbol$unscopables = require("core-js-pure/features/symbol/unscopables.js"); -var _Symbol = require("core-js-pure/features/symbol/index.js"); _Array$from; _Array$isArray; _Array$of; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js index b0040d5c..bd56a907 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/built-in-static-methods/output.js @@ -1,8 +1,24 @@ +var _JSON$stringify = require("core-js-pure/stable/json/stringify.js"); +var _Object$getOwnPropertySymbols = require("core-js-pure/stable/object/get-own-property-symbols.js"); +var _Symbol = require("core-js-pure/stable/symbol/index.js"); +var _Symbol$for = require("core-js-pure/stable/symbol/for.js"); +var _Symbol$keyFor = require("core-js-pure/stable/symbol/key-for.js"); +var _Symbol$asyncIterator = require("core-js-pure/stable/symbol/async-iterator.js"); +var _Symbol$hasInstance = require("core-js-pure/stable/symbol/has-instance.js"); +var _Symbol$isConcatSpreadable = require("core-js-pure/stable/symbol/is-concat-spreadable.js"); +var _Symbol$iterator = require("core-js-pure/stable/symbol/iterator.js"); +var _Symbol$match = require("core-js-pure/stable/symbol/match.js"); +var _Symbol$replace = require("core-js-pure/stable/symbol/replace.js"); +var _Symbol$search = require("core-js-pure/stable/symbol/search.js"); +var _Symbol$species = require("core-js-pure/stable/symbol/species.js"); +var _Symbol$split = require("core-js-pure/stable/symbol/split.js"); +var _Symbol$toPrimitive = require("core-js-pure/stable/symbol/to-primitive.js"); +var _Symbol$toStringTag = require("core-js-pure/stable/symbol/to-string-tag.js"); +var _Symbol$unscopables = require("core-js-pure/stable/symbol/unscopables.js"); var _Array$from = require("core-js-pure/stable/array/from.js"); var _Array$isArray = require("core-js-pure/stable/array/is-array.js"); var _Array$of = require("core-js-pure/stable/array/of.js"); var _Date$now = require("core-js-pure/stable/date/now.js"); -var _JSON$stringify = require("core-js-pure/stable/json/stringify.js"); var _Math$acosh = require("core-js-pure/stable/math/acosh.js"); var _Math$asinh = require("core-js-pure/stable/math/asinh.js"); var _Math$atanh = require("core-js-pure/stable/math/atanh.js"); @@ -21,12 +37,12 @@ var _Math$sinh = require("core-js-pure/stable/math/sinh.js"); var _Math$tanh = require("core-js-pure/stable/math/tanh.js"); var _Math$trunc = require("core-js-pure/stable/math/trunc.js"); var _Number$EPSILON = require("core-js-pure/stable/number/epsilon.js"); -var _Number$MAX_SAFE_INTEGER = require("core-js-pure/stable/number/max-safe-integer.js"); -var _Number$MIN_SAFE_INTEGER = require("core-js-pure/stable/number/min-safe-integer.js"); var _Number$isFinite = require("core-js-pure/stable/number/is-finite.js"); var _Number$isInteger = require("core-js-pure/stable/number/is-integer.js"); var _Number$isNaN = require("core-js-pure/stable/number/is-nan.js"); var _Number$isSafeInteger = require("core-js-pure/stable/number/is-safe-integer.js"); +var _Number$MAX_SAFE_INTEGER = require("core-js-pure/stable/number/max-safe-integer.js"); +var _Number$MIN_SAFE_INTEGER = require("core-js-pure/stable/number/min-safe-integer.js"); var _Number$parseFloat = require("core-js-pure/stable/number/parse-float.js"); var _Number$parseInt = require("core-js-pure/stable/number/parse-int.js"); var _Object$assign = require("core-js-pure/stable/object/assign.js"); @@ -39,12 +55,11 @@ var _Object$fromEntries = require("core-js-pure/stable/object/from-entries.js"); var _Object$getOwnPropertyDescriptor = require("core-js-pure/stable/object/get-own-property-descriptor.js"); var _Object$getOwnPropertyDescriptors = require("core-js-pure/stable/object/get-own-property-descriptors.js"); var _Object$getOwnPropertyNames = require("core-js-pure/stable/object/get-own-property-names.js"); -var _Object$getOwnPropertySymbols = require("core-js-pure/stable/object/get-own-property-symbols.js"); var _Object$getPrototypeOf = require("core-js-pure/stable/object/get-prototype-of.js"); +var _Object$is = require("core-js-pure/stable/object/is.js"); var _Object$isExtensible = require("core-js-pure/stable/object/is-extensible.js"); var _Object$isFrozen = require("core-js-pure/stable/object/is-frozen.js"); var _Object$isSealed = require("core-js-pure/stable/object/is-sealed.js"); -var _Object$is = require("core-js-pure/stable/object/is.js"); var _Object$keys = require("core-js-pure/stable/object/keys.js"); var _Object$preventExtensions = require("core-js-pure/stable/object/prevent-extensions.js"); var _Object$seal = require("core-js-pure/stable/object/seal.js"); @@ -54,9 +69,9 @@ var _Reflect$apply = require("core-js-pure/stable/reflect/apply.js"); var _Reflect$construct = require("core-js-pure/stable/reflect/construct.js"); var _Reflect$defineProperty = require("core-js-pure/stable/reflect/define-property.js"); var _Reflect$deleteProperty = require("core-js-pure/stable/reflect/delete-property.js"); +var _Reflect$get = require("core-js-pure/stable/reflect/get.js"); var _Reflect$getOwnPropertyDescriptor = require("core-js-pure/stable/reflect/get-own-property-descriptor.js"); var _Reflect$getPrototypeOf = require("core-js-pure/stable/reflect/get-prototype-of.js"); -var _Reflect$get = require("core-js-pure/stable/reflect/get.js"); var _Reflect$has = require("core-js-pure/stable/reflect/has.js"); var _Reflect$isExtensible = require("core-js-pure/stable/reflect/is-extensible.js"); var _Reflect$ownKeys = require("core-js-pure/stable/reflect/own-keys.js"); @@ -65,21 +80,6 @@ var _Reflect$set = require("core-js-pure/stable/reflect/set.js"); var _Reflect$setPrototypeOf = require("core-js-pure/stable/reflect/set-prototype-of.js"); var _String$fromCodePoint = require("core-js-pure/stable/string/from-code-point.js"); var _String$raw = require("core-js-pure/stable/string/raw.js"); -var _Symbol$asyncIterator = require("core-js-pure/stable/symbol/async-iterator.js"); -var _Symbol = require("core-js-pure/stable/symbol/index.js"); -var _Symbol$for = require("core-js-pure/stable/symbol/for.js"); -var _Symbol$hasInstance = require("core-js-pure/stable/symbol/has-instance.js"); -var _Symbol$isConcatSpreadable = require("core-js-pure/stable/symbol/is-concat-spreadable.js"); -var _Symbol$iterator = require("core-js-pure/stable/symbol/iterator.js"); -var _Symbol$keyFor = require("core-js-pure/stable/symbol/key-for.js"); -var _Symbol$match = require("core-js-pure/stable/symbol/match.js"); -var _Symbol$replace = require("core-js-pure/stable/symbol/replace.js"); -var _Symbol$search = require("core-js-pure/stable/symbol/search.js"); -var _Symbol$species = require("core-js-pure/stable/symbol/species.js"); -var _Symbol$split = require("core-js-pure/stable/symbol/split.js"); -var _Symbol$toPrimitive = require("core-js-pure/stable/symbol/to-primitive.js"); -var _Symbol$toStringTag = require("core-js-pure/stable/symbol/to-string-tag.js"); -var _Symbol$unscopables = require("core-js-pure/stable/symbol/unscopables.js"); _Array$from; _Array$isArray; _Array$of; diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/es6-for-of/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/es6-for-of/output.js index 50fa7086..abbddaf6 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/es6-for-of/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/es6-for-of/output.js @@ -1,8 +1,8 @@ -var _sliceInstanceProperty = require("core-js-pure/stable/instance/slice.js"); -var _Array$from = require("core-js-pure/stable/array/from.js"); var _Symbol = require("core-js-pure/stable/symbol/index.js"); -var _getIteratorMethod = require("core-js-pure/features/get-iterator-method.js"); +var _Array$from = require("core-js-pure/stable/array/from.js"); var _Array$isArray = require("core-js-pure/stable/array/is-array.js"); +var _sliceInstanceProperty = require("core-js-pure/stable/instance/slice.js"); +var _getIteratorMethod = require("core-js-pure/features/get-iterator-method.js"); function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function () {}; return { s: F, n: function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (e) { throw e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function () { it = it.call(o); }, n: function () { var step = it.next(); normalCompletion = step.done; return step; }, e: function (e) { didErr = true; err = e; }, f: function () { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { var _context; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context = Object.prototype.toString.call(o)).call(_context, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/modules/output.js b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/modules/output.js index 7b7ef00d..e9945bd9 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/modules/output.js +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/modules/output.js @@ -1,8 +1,8 @@ "use strict"; var _context; -var _Object$defineProperty = require("core-js-pure/stable/object/define-property.js"); var _forEachInstanceProperty = require("core-js-pure/stable/instance/for-each.js"); +var _Object$defineProperty = require("core-js-pure/stable/object/define-property.js"); var _Object$keys = require("core-js-pure/stable/object/keys.js"); _Object$defineProperty(exports, "__esModule", { value: true diff --git a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/shippedProposals/output.mjs b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/shippedProposals/output.mjs index da52cecb..91ac1a0d 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/shippedProposals/output.mjs +++ b/packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/shippedProposals/output.mjs @@ -1,11 +1,11 @@ +import _Symbol from "core-js-pure/stable/symbol/index.js"; +import _Symbol$match from "core-js-pure/stable/symbol/match.js"; import _Array$from from "core-js-pure/stable/array/from.js"; +import _globalThis from "core-js-pure/features/global-this.js"; import _Map from "core-js-pure/stable/map/index.js"; import _Promise from "core-js-pure/stable/promise/index.js"; -import _Symbol$match from "core-js-pure/stable/symbol/match.js"; -import _getIterator from "core-js-pure/features/get-iterator.js"; -import _Symbol from "core-js-pure/stable/symbol/index.js"; import _queueMicrotask from "core-js-pure/stable/queue-microtask.js"; -import _globalThis from "core-js-pure/features/global-this.js"; +import _getIterator from "core-js-pure/features/get-iterator.js"; _Array$from; // static method _Map; // built-in new _Promise(); // new builtin