fix #9189 Obviously this code is intended to throw an error if someone tries to reference a class before it's defined, like: ```js class Foo { someField = Foo; } ``` But there's no problem with referencing the class in a type annotation before it's defined, and this is often necessary for tree structures: ```js class Foo { [someSymbol]: Foo; } ```
@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