* Enable `destructuringPrivate` plugiin * Add tests * Add changelog * Add more tests
423 B
423 B
Support destructuring private proposal (#12276 by @sosukesuzuki)
Support Stage 2 TC39 proposal destructuring private fields via Babel 7.17.
// Example
class Foo {
constructor() {
console.log(this.#x); // => 1
const { #x: x } = this;
console.log(x); // => 1
}
}