Skip to content

Commit ac9d869

Browse files
committed
Fixes comment
1 parent 0e39af9 commit ac9d869

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/internal/modules/cjs/loader.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,7 @@ function tryPackageMapResolveCJS(request, parent, conditions) {
665665
const parentPath = trySelfParentPath(parent);
666666
if (!parentPath) { return undefined; }
667667

668-
// If the resolution has no parent, use the current working directory. This
669-
// usually happens when running `node -e 'require("some-package")'`.
670668
const mapped = packageMapResolve(request, parentPath);
671-
672669
if (mapped === undefined) {
673670
const requireStack = getRequireStack(parent);
674671
const message = getRequireStackMessage(request, requireStack);

0 commit comments

Comments
 (0)