webpack-dev-middleware
Advanced tools
+5
-4
@@ -517,7 +517,8 @@ "use strict"; | ||
| }; | ||
| if (isMultipleCompiler(compiler)) { | ||
| // TODO improve on webpack side - add an option `watching(s)` for MultiCompiler | ||
| if (compiler.watching) { | ||
| // Reuse the active watching session instead of starting a second one | ||
| // (exposed on `MultiCompiler` since webpack 5.109). | ||
| context.watching = compiler.watching; | ||
| } else if (isMultipleCompiler(compiler)) { | ||
| context.watching = compiler.watch(compiler.compilers.map(compiler => compiler.options.watchOptions || {}), errorHandler); | ||
| } else if (compiler.watching) { | ||
| context.watching = compiler.watching; | ||
| } else { | ||
@@ -524,0 +525,0 @@ context.watching = compiler.watch(compiler.options.watchOptions || {}, errorHandler); |
+2
-2
| { | ||
| "name": "webpack-dev-middleware", | ||
| "version": "8.0.4", | ||
| "version": "8.1.0", | ||
| "description": "A development middleware for webpack", | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
| "typescript": "^6.0.2", | ||
| "webpack": "^5.101.0" | ||
| "webpack": "^5.109.0" | ||
| }, | ||
@@ -93,0 +93,0 @@ "peerDependencies": { |
142340
0.03%3373
0.03%