Skip to content

Commit

Permalink
fixup: use non-normalized form for compat concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Mar 18, 2022
1 parent fa8c5cd commit 5665ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/modules/cjs/loader.js
Expand Up @@ -539,12 +539,12 @@ Module._findPath = function(request, paths, isMain) {
if (insidePath && curPath && stat(curPath) < 1) continue;

if (!absoluteRequest) {
const exportsResolved = resolveExports(curPath, normalizedRequest);
const exportsResolved = resolveExports(curPath, request);
if (exportsResolved)
return exportsResolved;
}

const basePath = path.resolve(curPath, normalizedRequest);
const basePath = path.resolve(curPath, request);
let filename;

const rc = stat(basePath);
Expand Down

0 comments on commit 5665ab8

Please sign in to comment.