diff --git a/lib/visitor/deps-resolver.js b/lib/visitor/deps-resolver.js index dd9622960..0a0e686a4 100644 --- a/lib/visitor/deps-resolver.js +++ b/lib/visitor/deps-resolver.js @@ -110,7 +110,7 @@ DepsResolver.prototype.visitCall = function(call) { */ DepsResolver.prototype.visitImport = function(node) { - var path = !node.path.first.val.isNull && node.path.first.val || node.path.first.name + var path = node.path.first.val && !node.path.first.val.isNull || node.path.first.name , literal, found, oldPath; if (!path) return;