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; }