Skip to content

Commit dd20f5e

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

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
@@ -221,9 +221,12 @@ Plugin.prototype.notifyKarmaAboutChanges = function() {
221221

222222
Plugin.prototype.addFile = function(entry) {
223223
if (this.files.indexOf(entry) >= 0) {
224-
return;
224+
return false;
225225
}
226+
226227
this.files.push(entry);
228+
229+
return true;
227230
};
228231

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

0 commit comments

Comments
 (0)