diff --git a/lib/6to5/transformation/transformers/other/flow.js b/lib/6to5/transformation/transformers/other/flow.js index 03da75ef41..1291ce2c32 100644 --- a/lib/6to5/transformation/transformers/other/flow.js +++ b/lib/6to5/transformation/transformers/other/flow.js @@ -5,7 +5,7 @@ exports.TypeCastExpression = function (node) { }; exports.ImportDeclaration = function (node) { - if (node.type) this.remove(); + if (node.isType) this.remove(); }; exports.ExportDeclaration = function (node) {