diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index f5d63cafb7d427..b6c5509311d938 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -1058,7 +1058,7 @@ Module._resolveFilename = function(request, parent, isMain, options) { } // Look up the filename first, since that's the cache key. - const filename = Module._findPath(request, paths, isMain, false); + const filename = Module._findPath(request, paths, isMain); if (filename) return filename; const requireStack = []; for (let cursor = parent;