babel/packages/babel-plugin-class-features
Tim McClure 0859535b62 Private class methods stage 3 (#8654)
* Add private method syntax support

* Add private method spec support

* Add private method loose support

* Throw error if static private method is used

* Add more isStatic & isMethod checks

* Remove `writable:false` from private method inits

`writable` is false by default.

* Add private method func obj equality check

* Throw if private accessor is used

* Add check for fields === private method loose mode

* Throw buildCodeFrameErrors instead of Errors

* Move obj destructuring inside for loop

* Remove "computed" from ClassPrivateMethod type def
2018-11-28 16:20:09 -08:00
..
2018-11-28 16:20:09 -08:00
2018-11-20 21:14:35 +01:00
2018-11-20 21:14:35 +01:00
2018-11-20 21:14:35 +01:00
2018-11-20 21:14:35 +01:00

@babel/plugin-class-features

Compile class public and private fields, private methods and decorators to ES6

See our website @babel/plugin-class-features for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-class-features

or using yarn:

yarn add @babel/plugin-class-features --dev