diff --git a/docs/internal/maintenance.md b/docs/internal/maintenance.md index f187759d..47445986 100644 --- a/docs/internal/maintenance.md +++ b/docs/internal/maintenance.md @@ -111,6 +111,7 @@ Keep implementation follow-ups separate from documentation changes: - Aggregate test/lint commands need the correction described under [Checks](#checks). - Logger test setup and early feature-description translation need the corrections described under [Temporary validation procedures](#temporary-validation-procedures). - Enabling Tailwind exposes existing check assumptions: one PHP test expects it disabled, CSS lint rules reject Tailwind directives, and manifest lint requires dependency keys sorted after a feature adds them. Verify the default state and report optional-feature check failures separately; do not hide them by changing the application feature selection for a normal developer test run. +- `webpack-dev-server` is pinned to 6.0.0 (`devDependencies`, plus an `overrides` entry pointing at it; the override alone would nest the pin under `@wordpress/scripts`, where `webpack-cli` cannot find it). 6.1.0's client compares the dev server's combined hash from the two `--experimental-modules` compilers strictly against the page's own hash, so the block editor reloads in a loop under `npm start`. Remove both lines once a release after 6.1.0 handles multi-compiler hashes, then check that an edit to a block's `edit.js` hot-applies without a reload. - Cleanup removes AI files still named in retained starter instructions; the intended downstream Copilot/AI retention contract needs a separate change. Record newly verified defects with their reproduction and affected revision in the review handoff. Missing upstream documentation belongs to that package; do not grow a duplicate manual here. diff --git a/package-lock.json b/package-lock.json index eff5eb0f..33aeac81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,6 +41,7 @@ "rtlcss": "4.3.0", "svgo": "4.1.0", "webpack": "5.112.2", + "webpack-dev-server": "6.0.0", "webpack-remove-empty-scripts": "1.1.1" }, "engines": { @@ -10832,6 +10833,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true, + "engines": [ + "node >= 0.8.0" + ], + "license": "Apache-2.0", + "bin": { + "ansi-html": "bin/ansi-html" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -28442,9 +28456,9 @@ } }, "node_modules/webpack-dev-server": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-6.1.0.tgz", - "integrity": "sha512-T52SEoefJWZDgiYRMeQn4q/w9EVIZjBNWfy/WNRR2+EosPwpUmdUY1Wj0b1Mk7+svgKXojdQTP425fJ+DN58yg==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-6.0.0.tgz", + "integrity": "sha512-q9SD4ItOGhZLeU6EGT10caDZdHjF50Pz1DtkRZZOPsfluMXOkacWKKOtSBSLVkPqKiF67eFUC0rI88U/tSFPEw==", "dev": true, "license": "MIT", "dependencies": { @@ -28455,6 +28469,7 @@ "@types/serve-index": "^1.9.4", "@types/serve-static": "^2.2.0", "@types/ws": "^8.18.1", + "ansi-html-community": "^0.0.8", "bonjour-service": "^1.3.0", "chokidar": "^5.0.0", "compression": "^1.8.1", @@ -28470,7 +28485,7 @@ "selfsigned": "^5.5.0", "serve-index": "^1.9.2", "tinyglobby": "^0.2.15", - "webpack-dev-middleware": "^8.4.0", + "webpack-dev-middleware": "^8.0.3", "ws": "^8.20.0" }, "bin": { diff --git a/package.json b/package.json index 2dd49522..c1d3aa48 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "rtlcss": "4.3.0", "svgo": "4.1.0", "webpack": "5.112.2", + "webpack-dev-server": "6.0.0", "webpack-remove-empty-scripts": "1.1.1" }, "scripts": { @@ -103,7 +104,8 @@ }, "@wordpress/scripts": { "adm-zip": "0.6.1" - } + }, + "webpack-dev-server": "$webpack-dev-server" }, "private": true }