Skip to content

Commit

Permalink
Update packages/babel-preset-env/test/fixtures/plugins-integration/cl…
Browse files Browse the repository at this point in the history
…ass-features-node-12/options.json

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
  • Loading branch information
nicolo-ribaudo and JLHwung committed Jan 18, 2022
1 parent aa55343 commit db078cd
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 3 deletions.
@@ -0,0 +1,10 @@
class A {
#x;
}

class B {
#x;
#y() {
this.#x;
}
}
@@ -0,0 +1,8 @@
{
"BABEL_8_BREAKING": false,
"validateLogs": true,
"targets": "node 12.0",
"presets": [
["env", { "debug": true }]
]
}
@@ -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);
}
@@ -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.
@@ -1,6 +1,7 @@
{
"BABEL_8_BREAKING": true,
"validateLogs": true,
"targets": "node 12",
"targets": "node 12.0",
"presets": [
["env", { "debug": true }]
]
Expand Down
Expand Up @@ -2,7 +2,7 @@

Using targets:
{
"node": "12.22"
"node": "12"
}

Using modules transform: auto
Expand All @@ -12,7 +12,7 @@ Using plugins:
proposal-private-property-in-object { node < 16.9 }
syntax-class-properties
proposal-private-methods { node < 14.6 }
syntax-numeric-separator
proposal-numeric-separator { node < 12.5 }
proposal-logical-assignment-operators { node < 15 }
proposal-nullish-coalescing-operator { node < 14 }
proposal-optional-chaining { node < 14 }
Expand Down

0 comments on commit db078cd

Please sign in to comment.