mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
Transform private property accesses in static prop initializers. e.g.:
Input:
```js
class C {
static #x = 123;
static y = this.#x;
}
```
Transformed:
```js
class C {}
var _x = { _: 123 };
babelHelpers.defineProperty(C, "y", babelHelpers.assertClassBrand(C, C, _x)._);
```
`this.#x` has been transformed to `babelHelpers.assertClassBrand(C, C, _x)._`.
|
||
|---|---|---|
| .. | ||
| babel-plugin-transform-object-rest-spread/test/fixtures | ||
| babel-plugin-transform-optional-chaining/test/fixtures | ||
| babel.snap.md | ||
| babel_exec.snap.md | ||
| oxc.snap.md | ||
| oxc_exec.snap.md | ||