Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize
core-js
entry points (#9752)
* normalize `core-js` entry points names * Update packages/babel-preset-env/src/polyfills/corejs3/entry-plugin.js Co-Authored-By: zloirock <zloirock@zloirock.ru> * handle windows paths
- Loading branch information
1 parent
ef0722b
commit adb4701
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/babel-preset-env/test/fixtures/corejs3/entry-normalization/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'core-js/es/map/index.js'; | ||
import 'core-js/es/set/index'; | ||
import 'core-js/es/array/from.js'; | ||
import 'core-js/es/promise/'; | ||
import 'cOrE-jS/eS/SymBOL/iTERator'; | ||
import 'core-js\\es\\symbol\\async-iterator'; | ||
import 'foo/index.js'; |
12 changes: 12 additions & 0 deletions
12
packages/babel-preset-env/test/fixtures/corejs3/entry-normalization/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"../../../../lib", | ||
{ | ||
"modules": false, | ||
"useBuiltIns": "entry", | ||
"corejs": 3 | ||
} | ||
] | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/babel-preset-env/test/fixtures/corejs3/entry-normalization/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import "core-js/modules/es.symbol.async-iterator"; | ||
import "core-js/modules/es.symbol.iterator"; | ||
import "core-js/modules/es.array.from"; | ||
import "core-js/modules/es.map"; | ||
import "core-js/modules/es.object.to-string"; | ||
import "core-js/modules/es.promise"; | ||
import "core-js/modules/es.promise.finally"; | ||
import "core-js/modules/es.set"; | ||
import "core-js/modules/es.string.iterator"; | ||
import "core-js/modules/web.dom-collections.iterator"; | ||
import 'foo/index.js'; |