From 9d1bc4817d6aa3357596a5e29beb0813ebe01e5c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 14 Feb 2015 13:24:39 +1100 Subject: [PATCH] fix flow module type stripping --- lib/6to5/transformation/transformers/other/flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {