diff --git a/index.js b/index.js index 4ececfc..1b95a57 100644 --- a/index.js +++ b/index.js @@ -144,8 +144,8 @@ module.exports = function (loadPaths) { } if (!graph[file.path]) { - addToGraph(relativePath, function () { - return file.contents.toString('utf8') + addToGraph(file.path, function () { + return file.contents.toString('utf8'); }); } @@ -165,4 +165,4 @@ module.exports = function (loadPaths) { cb(); }.bind(this)); }); -}; \ No newline at end of file +};