Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 8329fb4d3423cf4d71a001a866e2469c9bca9919 1 parent 9ddc5e4
isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  fstream-npm.js
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
Please sign in to comment.
Something went wrong with that request. Please try again.