Browse files

only bundle meta-deps if the original bundle is in node_modules

A package in test/foo/ is not necessarily a 'bundledDependency', and shouldn't
be treated like one.

However, a package in node_modules/foo/ that is being bundled clearly IS a
bundledDependency, and needs its deps included, no matter what.
  • Loading branch information...
1 parent 9ddc5e4 commit 8329fb4d3423cf4d71a001a866e2469c9bca9919 @isaacs isaacs committed Oct 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 fstream-npm.js
View
2 fstream-npm.js
@@ -143,7 +143,7 @@ Packer.prototype.applyIgnores = function (entry, partial, entryObj) {
// since it's *not* a symbolic link, if we're *already* in a bundle,
// then we should include everything.
- if (pp && pp.package) {
+ if (pp && pp.package && pp.basename === "node_modules") {
return true
}

0 comments on commit 8329fb4

Please sign in to comment.