Skip to content

Commit fe6f363

Browse files
piscisaureusry
authored andcommitted
Revert "realpath files during module load"
This reverts commit 131546e. Doesn't work on windows, coming back soon.
1 parent b7b0c92 commit fe6f363

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/node.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
try {
170170
var stats = fs.statSync(requestPath);
171171
if (stats && !stats.isDirectory()) {
172-
return fs.realpathSync(requestPath);
172+
return requestPath;
173173
}
174174
} catch (e) {}
175175
return false;
@@ -277,7 +277,6 @@
277277
if (!filename) {
278278
throw new Error("Cannot find module '" + request + "'");
279279
}
280-
id = filename;
281280
return [id, filename];
282281
}
283282

0 commit comments

Comments
 (0)