-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
9ec23b4
commit a566679
Showing
12 changed files
with
85 additions
and
7 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
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
1 change: 1 addition & 0 deletions
1
...bel-preset-env/test/fixtures/debug/shippedProposals-chrome-80-top-level-targets/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 '@babel/polyfill'; |
16 changes: 16 additions & 0 deletions
16
...-preset-env/test/fixtures/debug/shippedProposals-chrome-80-top-level-targets/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,16 @@ | ||
{ | ||
"validateLogs": true, | ||
"ignoreOutput": true, | ||
"targets": { | ||
"browsers": "chrome 80" | ||
}, | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"debug": true, | ||
"shippedProposals": true | ||
} | ||
] | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
...el-preset-env/test/fixtures/debug/shippedProposals-chrome-80-top-level-targets/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,25 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"chrome": "80" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
syntax-class-properties { "chrome":"80" } | ||
proposal-private-methods { "chrome":"80" } | ||
syntax-numeric-separator { "chrome":"80" } | ||
proposal-logical-assignment-operators { "chrome":"80" } | ||
syntax-nullish-coalescing-operator { "chrome":"80" } | ||
syntax-optional-chaining { "chrome":"80" } | ||
syntax-json-strings { "chrome":"80" } | ||
syntax-optional-catch-binding { "chrome":"80" } | ||
syntax-async-generators { "chrome":"80" } | ||
syntax-object-rest-spread { "chrome":"80" } | ||
transform-modules-commonjs { "chrome":"80" } | ||
proposal-dynamic-import { "chrome":"80" } | ||
proposal-export-namespace-from {} | ||
|
||
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
5 changes: 5 additions & 0 deletions
5
packages/babel-preset-env/test/fixtures/shipped-proposals/node-12-top-level-targets/input.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,5 @@ | ||
class A { | ||
x = this.#y(); | ||
|
||
#y() {} | ||
} |
8 changes: 8 additions & 0 deletions
8
...s/babel-preset-env/test/fixtures/shipped-proposals/node-12-top-level-targets/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,8 @@ | ||
{ | ||
"targets": { "node": 12 }, | ||
"presets": [ | ||
["env", { | ||
"shippedProposals": true | ||
}] | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
...ages/babel-preset-env/test/fixtures/shipped-proposals/node-12-top-level-targets/output.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,6 @@ | ||
var _y; | ||
|
||
class A { | ||
#y = _y || (_y = function () {}); | ||
x = this.#y(); | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/babel-preset-env/test/fixtures/shipped-proposals/node-12/input.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
class A { | ||
x; | ||
|
||
#y() {} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/babel-preset-env/test/fixtures/shipped-proposals/node-12/output.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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
|
||
var _y = new WeakSet(); | ||
|
||
class A { | ||
constructor() { | ||
_y.add(this); | ||
|
||
_defineProperty(this, "x", void 0); | ||
} | ||
|
||
} | ||
|
||
var _y2 = function _y2() {}; |