diff --git a/lib/6to5/util.js b/lib/6to5/util.js index 5afe1e97e1..3b0eb565c5 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -84,6 +84,9 @@ exports.sourceMapToComment = function (map) { var templateVisitor = { enter: function (node, parent, scope, nodes) { + if (t.isExpressionStatement(node)) { + node = node.expression; + } if (t.isIdentifier(node) && has(nodes, node.name)) { return nodes[node.name]; }