Skip to content

Commit

Permalink
fix(karma-webpack): compilation hangs when adding a file (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanclark authored and michael-ciniawsky committed Sep 1, 2018
1 parent 3b08c79 commit ddf161d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/karma-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,12 @@ Plugin.prototype.notifyKarmaAboutChanges = function() {

Plugin.prototype.addFile = function(entry) {
if (this.files.indexOf(entry) >= 0) {
return;
return false;
}

this.files.push(entry);

return true;
};

Plugin.prototype.make = function(compilation, callback) {
Expand Down

0 comments on commit ddf161d

Please sign in to comment.