-
-
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.
Update packages/babel-preset-env/test/fixtures/plugins-integration/cl…
…ass-features-node-12/options.json Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
- Loading branch information
1 parent
aa55343
commit db078cd
Showing
6 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...abel-preset-env/test/fixtures/plugins-integration/class-features-node-12-babel-7/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,10 @@ | ||
class A { | ||
#x; | ||
} | ||
|
||
class B { | ||
#x; | ||
#y() { | ||
this.#x; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...-preset-env/test/fixtures/plugins-integration/class-features-node-12-babel-7/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 @@ | ||
{ | ||
"BABEL_8_BREAKING": false, | ||
"validateLogs": true, | ||
"targets": "node 12.0", | ||
"presets": [ | ||
["env", { "debug": true }] | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
...bel-preset-env/test/fixtures/plugins-integration/class-features-node-12-babel-7/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,22 @@ | ||
class A { | ||
#x; | ||
} | ||
|
||
var _x = /*#__PURE__*/new WeakMap(); | ||
|
||
var _y = /*#__PURE__*/new WeakSet(); | ||
|
||
class B { | ||
constructor() { | ||
babelHelpers.classPrivateMethodInitSpec(this, _y); | ||
babelHelpers.classPrivateFieldInitSpec(this, _x, { | ||
writable: true, | ||
value: void 0 | ||
}); | ||
} | ||
|
||
} | ||
|
||
function _y2() { | ||
babelHelpers.classPrivateFieldGet(this, _x); | ||
} |
27 changes: 27 additions & 0 deletions
27
...el-preset-env/test/fixtures/plugins-integration/class-features-node-12-babel-7/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,27 @@ | ||
@babel/preset-env: `DEBUG` option | ||
|
||
Using targets: | ||
{ | ||
"node": "12" | ||
} | ||
|
||
Using modules transform: auto | ||
|
||
Using plugins: | ||
proposal-class-static-block { node < 16.11 } | ||
proposal-private-property-in-object { node < 16.9 } | ||
syntax-class-properties | ||
proposal-private-methods { node < 14.6 } | ||
proposal-numeric-separator { node < 12.5 } | ||
proposal-logical-assignment-operators { node < 15 } | ||
proposal-nullish-coalescing-operator { node < 14 } | ||
proposal-optional-chaining { node < 16.9 } | ||
syntax-json-strings | ||
syntax-optional-catch-binding | ||
syntax-async-generators | ||
syntax-object-rest-spread | ||
proposal-export-namespace-from { node < 13.2 } | ||
transform-modules-commonjs | ||
proposal-dynamic-import | ||
|
||
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set. |
3 changes: 2 additions & 1 deletion
3
...es/babel-preset-env/test/fixtures/plugins-integration/class-features-node-12/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
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