babel/packages/babel-plugin-proposal-private-methods
Huáng Jùnliàng 82e089c7dd
Evaluate object and initializer when setting a private method (#12707)
* fix: evaluate initializer when a private method is set as a field

* make legacy node happy

* add accessor test cases

* fix: evaluate object before RHS

* fix: evaluate object before throwing writeOnlyError
2021-03-01 17:49:59 -05:00
..
2021-02-22 23:35:18 +01:00

@babel/plugin-proposal-private-methods

This plugin transforms private class methods

See our website @babel/plugin-proposal-private-methods for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-proposal-private-methods

or using yarn:

yarn add @babel/plugin-proposal-private-methods --dev