babel/packages/babel-helper-create-class-features-plugin
Andy Edwards 3c8e15dbc1 don't throw classNameTDZError if referenced identifier is within a TypeAnnotation (#9190)
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;
}
```
2018-12-15 15:16:43 +01:00
..
2018-12-15 10:59:56 +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