Skip to content

Commit 5665ab8

Browse files
committed
fixup: use non-normalized form for compat concerns
1 parent fa8c5cd commit 5665ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/modules/cjs/loader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,12 @@ Module._findPath = function(request, paths, isMain) {
539539
if (insidePath && curPath && stat(curPath) < 1) continue;
540540

541541
if (!absoluteRequest) {
542-
const exportsResolved = resolveExports(curPath, normalizedRequest);
542+
const exportsResolved = resolveExports(curPath, request);
543543
if (exportsResolved)
544544
return exportsResolved;
545545
}
546546

547-
const basePath = path.resolve(curPath, normalizedRequest);
547+
const basePath = path.resolve(curPath, request);
548548
let filename;
549549

550550
const rc = stat(basePath);

0 commit comments

Comments
 (0)