babel/packages/babel-helper-replace-supers
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
..
2017-03-25 21:46:16 -04:00
2018-09-17 15:29:37 -04:00

@babel/helper-replace-supers

Helper function to replace supers

See our website @babel/helper-replace-supers for more information.

Install

Using npm:

npm install --save-dev @babel/helper-replace-supers

or using yarn:

yarn add @babel/helper-replace-supers --dev