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