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 e68abc3 commit dd20f5e
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 @@ -221,9 +221,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 dd20f5e

Please sign in to comment.