Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
698fe8e
commit c5ba345
Showing
12 changed files
with
119 additions
and
1 deletion.
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
2 changes: 2 additions & 0 deletions
2
packages/babel-helper-compilation-targets/test/custom-browserslist-env/.browserslistrc
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,2 @@ | ||
[custom] | ||
ie 11 |
10 changes: 10 additions & 0 deletions
10
...l-helper-compilation-targets/test/custom-browserslist-env/custom-browserslist-env.spec.js
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,10 @@ | ||
import getTargets from "../.."; | ||
|
||
it("allows custom browserslist env", () => { | ||
const actual = getTargets( | ||
{}, | ||
{ configPath: __dirname, browserslistEnv: "custom" }, | ||
); | ||
|
||
expect(actual).toEqual({ ie: "11.0.0" }); | ||
}); |
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
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
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
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
2 changes: 2 additions & 0 deletions
2
packages/babel-preset-env/test/fixtures/debug/browserslist-env/.browserslistrc
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,2 @@ | ||
[custom] | ||
ie 11 |
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/debug/browserslist-env/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"; |
14 changes: 14 additions & 0 deletions
14
packages/babel-preset-env/test/fixtures/debug/browserslist-env/options.js
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,14 @@ | ||
module.exports = { | ||
validateLogs: true, | ||
ignoreOutput: true, | ||
presets: [ | ||
[ | ||
"env", | ||
{ | ||
debug: true, | ||
browserslistEnv: "custom", | ||
configPath: __dirname, | ||
}, | ||
], | ||
], | ||
}; |
44 changes: 44 additions & 0 deletions
44
packages/babel-preset-env/test/fixtures/debug/browserslist-env/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,44 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"ie": "11" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-nullish-coalescing-operator { "ie":"11" } | ||
proposal-optional-chaining { "ie":"11" } | ||
proposal-json-strings { "ie":"11" } | ||
proposal-optional-catch-binding { "ie":"11" } | ||
transform-parameters { "ie":"11" } | ||
proposal-async-generator-functions { "ie":"11" } | ||
proposal-object-rest-spread { "ie":"11" } | ||
transform-dotall-regex { "ie":"11" } | ||
proposal-unicode-property-regex { "ie":"11" } | ||
transform-named-capturing-groups-regex { "ie":"11" } | ||
transform-async-to-generator { "ie":"11" } | ||
transform-exponentiation-operator { "ie":"11" } | ||
transform-template-literals { "ie":"11" } | ||
transform-literals { "ie":"11" } | ||
transform-function-name { "ie":"11" } | ||
transform-arrow-functions { "ie":"11" } | ||
transform-classes { "ie":"11" } | ||
transform-object-super { "ie":"11" } | ||
transform-shorthand-properties { "ie":"11" } | ||
transform-duplicate-keys { "ie":"11" } | ||
transform-computed-properties { "ie":"11" } | ||
transform-for-of { "ie":"11" } | ||
transform-sticky-regex { "ie":"11" } | ||
transform-unicode-regex { "ie":"11" } | ||
transform-spread { "ie":"11" } | ||
transform-destructuring { "ie":"11" } | ||
transform-block-scoping { "ie":"11" } | ||
transform-typeof-symbol { "ie":"11" } | ||
transform-new-target { "ie":"11" } | ||
transform-regenerator { "ie":"11" } | ||
transform-modules-commonjs { "ie":"11" } | ||
proposal-dynamic-import { "ie":"11" } | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
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