diff --git a/src/babel/transformation/transformers/other/flow.js b/src/babel/transformation/transformers/other/flow.js index 54336d640c..1a06f4196e 100644 --- a/src/babel/transformation/transformers/other/flow.js +++ b/src/babel/transformation/transformers/other/flow.js @@ -7,9 +7,8 @@ export function Flow(node) { } export function ClassProperty(node) { - // todo: uncomment when/if class properties are supported by default. - // node.typeAnnotation = null; - this.dangerouslyRemove(); + node.typeAnnotation = null; + if (!node.value) this.dangerouslyRemove(); } export function Class(node) {