Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkomarychev committed Mar 10, 2020
1 parent 8159896 commit 2ae6d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/unambiguous.js
Expand Up @@ -25,5 +25,5 @@ const unambiguousNodeType = /^(?:(?:Exp|Imp)ort.*Declaration|TSExportAssignment)
* @return {Boolean}
*/
exports.isModule = function isUnambiguousModule(ast) {
return ast.body.some(node => unambiguousNodeType.test(node.type))
return ast.body && ast.body.some(node => unambiguousNodeType.test(node.type))
}

0 comments on commit 2ae6d70

Please sign in to comment.