always remove ClassProperty nodes in flow transformer - fixes #1686
This commit is contained in:
parent
02a6feed73
commit
25581981b5
@ -13,6 +13,11 @@ _Note: Gaps between patch versions are faulty/broken releases._
|
||||
|
||||
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
||||
|
||||
## 5.5.1
|
||||
|
||||
* **Bug Fix**
|
||||
* Remove `ClassProperty` nodes always in the `Flow` transformer. This is fine now since.
|
||||
|
||||
## 5.5.0
|
||||
|
||||
* **Bug Fix**
|
||||
|
||||
@ -7,7 +7,9 @@ export function Flow(node) {
|
||||
}
|
||||
|
||||
export function ClassProperty(node) {
|
||||
node.typeAnnotation = null;
|
||||
// todo: uncomment when/if class properties are supported by default.
|
||||
// node.typeAnnotation = null;
|
||||
this.dangerouslyRemove();
|
||||
}
|
||||
|
||||
export function Class(node) {
|
||||
|
||||
@ -64,14 +64,8 @@ class Foo8 {
|
||||
"bar"() {}
|
||||
}
|
||||
function foo(requiredParam, optParam) {}
|
||||
class Foo9 {
|
||||
prop1;
|
||||
prop2;
|
||||
}
|
||||
class Foo10 {
|
||||
static prop1;
|
||||
prop2;
|
||||
}
|
||||
class Foo9 {}
|
||||
class Foo10 {}
|
||||
var x = 4;
|
||||
class Array {
|
||||
concat(items) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user