From 62e6f730196c9d0c52a0da5a0ddc9aa1be000296 Mon Sep 17 00:00:00 2001 From: "Allen.M" Date: Thu, 10 Nov 2016 21:43:47 +0800 Subject: [PATCH] fix browserify cannot find "is-buffer" pacakge from "core-util-is" when use "npminstall" install packages --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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