Skip to content

Commit ddf161d

Browse files
ryanclarkmichael-ciniawsky
authored andcommitted
fix(karma-webpack): compilation hangs when adding a file (#345)
1 parent 3b08c79 commit ddf161d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/karma-webpack.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,12 @@ Plugin.prototype.notifyKarmaAboutChanges = function() {
228228

229229
Plugin.prototype.addFile = function(entry) {
230230
if (this.files.indexOf(entry) >= 0) {
231-
return;
231+
return false;
232232
}
233+
233234
this.files.push(entry);
235+
236+
return true;
234237
};
235238

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

0 commit comments

Comments
 (0)