From 3af0fc6fb7b6658d9bda9f63bbe30c62b4be6892 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 25 Nov 2014 11:44:35 +1100 Subject: [PATCH] ignore XJSEmptyExpression - fixes #214 --- lib/6to5/transformation/transformers/react.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/6to5/transformation/transformers/react.js b/lib/6to5/transformation/transformers/react.js index 32a1d4ee15..645e19a744 100644 --- a/lib/6to5/transformation/transformers/react.js +++ b/lib/6to5/transformation/transformers/react.js @@ -132,6 +132,8 @@ exports.XJSElement = { } }); + return; + } else if (t.isXJSEmptyExpression(child)) { return; }