From ddf161d922907028dbcdb5f1fa9370a54847b4f4 Mon Sep 17 00:00:00 2001 From: Ryan Clark Date: Sat, 1 Sep 2018 04:36:55 +0100 Subject: [PATCH] fix(karma-webpack): `compilation` hangs when adding a file (#345) --- src/karma-webpack.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/karma-webpack.js b/src/karma-webpack.js index 4e9d13a..e65e344 100644 --- a/src/karma-webpack.js +++ b/src/karma-webpack.js @@ -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) {