diff --git a/src/node.js b/src/node.js index 368cc08a95..b99476427c 100644 --- a/src/node.js +++ b/src/node.js @@ -169,7 +169,7 @@ try { var stats = fs.statSync(requestPath); if (stats && !stats.isDirectory()) { - return fs.realpathSync(requestPath); + return requestPath; } } catch (e) {} return false; @@ -277,7 +277,6 @@ if (!filename) { throw new Error("Cannot find module '" + request + "'"); } - id = filename; return [id, filename]; }