diff --git a/index.js b/index.js index 6684064..4a1a16f 100644 --- a/index.js +++ b/index.js @@ -408,8 +408,8 @@ Deps.prototype.walk = function (id, parent, cb) { } var isTopLevel = self._isTopLevel(fakePath || file); var current = { - id: file, - filename: file, + id: fakePath || file, + filename: fakePath || file, paths: self.paths, package: pkg, inNodeModules: parent.inNodeModules || !isTopLevel