diff options
author | Mihai Călin Bazon <mihai@bazon.net> | 2011-01-04 23:24:17 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-04 23:24:17 +0300 |
commit | 131546e7339d6960ea91629915468c6f04a33cf7 (patch) | |
tree | 2507ac00ccc0fe6135d19aa5791b803d96bd7f68 /src | |
parent | cda4d56bcf235baf15c401276b281de5955edd5d (diff) |
realpath files during module load
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js index 1d1ca687d86..57ff87f0623 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]; } |