🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

webpack-dev-middleware

Package Overview
Dependencies
Maintainers
8
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dev-middleware - npm Package Compare versions

Comparing version
8.0.4
to
8.1.0
+5
-4
dist/index.js

@@ -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);

{
"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": {