From 4336c29c01fa53b99cc3cecb8a20c1141b642d77 Mon Sep 17 00:00:00 2001 From: Ivan Agafonov Date: Thu, 26 Aug 2021 19:04:45 +0500 Subject: [PATCH] fix: DepsResolver.visitImport path isNull check --- lib/visitor/deps-resolver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;