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