Skip to content

Commit 62e6f73

Browse files
committed
fix browserify cannot find "is-buffer" pacakge from "core-util-is" when use "npminstall" install packages
1 parent 3b240bb commit 62e6f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ Deps.prototype.walk = function (id, parent, cb) {
408408
}
409409
var isTopLevel = self._isTopLevel(fakePath || file);
410410
var current = {
411-
id: file,
412-
filename: file,
411+
id: fakePath || file,
412+
filename: fakePath || file,
413413
paths: self.paths,
414414
package: pkg,
415415
inNodeModules: parent.inNodeModules || !isTopLevel

0 commit comments

Comments
 (0)