Skip to content

Commit

Permalink
Filter out 'cjs require context' modules
Browse files Browse the repository at this point in the history
  • Loading branch information
thomsbg committed Oct 3, 2014
1 parent 15a61e4 commit 8f29134
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ function json(bundles, callback) {
// return a.id === b.id ? 0 : 1
// }, true)

modules = modules.filter(function(mod) {
return !mod.reasons.some(function(reason) {
return reason.type === 'cjs require context';
});
});

var root = commondir(modules.map(pluck('identifier')))
var main = path.basename(root)

Expand Down

0 comments on commit 8f29134

Please sign in to comment.