babel/packages/babel-helper-create-class-features-plugin
Siddhant N Trivedi 3fc904e1d4
Fix classNameTDZError in computed prototype methods with class fields (#11068)
* Draft fix for TDZError in computed prototype methods

* Added tests for loose:false and also extracted handleClassTDZ

* Added state parameter to handleClassTDZ function

* Extracted the state object to a variable

* Added helper comments for environmentVisitor

* Added else condition to traverse computed Path

* Cached computed path key into a variable
2020-02-12 11:55:38 +01:00
..
2020-01-13 22:36:19 +01:00

@babel/helper-create-class-features-plugin

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

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

Install

Using npm:

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

or using yarn:

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