diff --git a/utils/uniffe.js b/utils/uniffe.js index da6ccab0..7b67e4ab 100644 --- a/utils/uniffe.js +++ b/utils/uniffe.js @@ -34,7 +34,8 @@ function uniffe(contents) { escodegen.attachComments(ast, comments, tokens); - if (ast.body[0].expression.callee === undefined) { + if (ast.body[0].expression === undefined || + ast.body[0].expression.callee === undefined) { return contents; }