Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add testcases last 2 versions not ie
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/debug/browserslists-last-2-versions-not-ie/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 @@ | ||
import "core-js"; |
20 changes: 20 additions & 0 deletions
20
...es/babel-preset-env/test/fixtures/debug/browserslists-last-2-versions-not-ie/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,20 @@ | ||
{ | ||
"validateLogs": true, | ||
"ignoreOutput": true, | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"debug": true, | ||
"targets": { | ||
"browsers": [ | ||
"last 2 versions", | ||
"not ie <= 11", | ||
"not ie_mob <= 11", | ||
"not op_mob <= 12.1" | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
31 changes: 31 additions & 0 deletions
31
...ages/babel-preset-env/test/fixtures/debug/browserslists-last-2-versions-not-ie/stdout.txt
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,31 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"android": "76", | ||
"chrome": "77", | ||
"edge": "17", | ||
"firefox": "68", | ||
"ios": "13", | ||
"opera": "46", | ||
"safari": "12.1", | ||
"samsung": "9.2" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
transform-template-literals { "safari":"12.1" } | ||
transform-function-name { "edge":"17" } | ||
transform-dotall-regex { "edge":"17", "firefox":"68", "opera":"46" } | ||
transform-parameters { "edge":"17" } | ||
proposal-async-generator-functions { "edge":"17", "opera":"46" } | ||
proposal-object-rest-spread { "edge":"17", "opera":"46" } | ||
proposal-unicode-property-regex { "edge":"17", "firefox":"68", "opera":"46" } | ||
proposal-json-strings { "edge":"17", "opera":"46" } | ||
proposal-optional-catch-binding { "edge":"17", "opera":"46" } | ||
transform-named-capturing-groups-regex { "edge":"17", "firefox":"68", "opera":"46" } | ||
transform-modules-commonjs { "android":"76", "chrome":"77", "edge":"17", "firefox":"68", "ios":"13", "opera":"46", "safari":"12.1", "samsung":"9.2" } | ||
proposal-dynamic-import { "android":"76", "chrome":"77", "edge":"17", "firefox":"68", "ios":"13", "opera":"46", "safari":"12.1", "samsung":"9.2" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |