Skip to content

Commit

Permalink
extend when ignore = true for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Aug 18, 2014
1 parent f753b44 commit 3c52aeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ File.prototype._run = function() {
});

var deps = file._run().map(function(file) {
file = extend({}, file);
if (isIgnore) file.ignore = isIgnore;
if (isIgnore) {
file = extend({}, file);
file.ignore = true;
}
return file;
});
cache = cache.concat(deps);
Expand Down

0 comments on commit 3c52aeb

Please sign in to comment.