Repository navigation
Minor Changes
- Inject the client into Web Workers the page starts, with webpack versions that provide the
additionalEntrieshook. (by @alexander-akait in #2518)
Patch Changes
-
Make
hapiWrapper,koaWrapperandhonoWrapperimportable by name from an ES module, asimport { koaWrapper } from "webpack-dev-middleware", which the types already allow. Node.js did not see them as named exports, so such an import threw aSyntaxError. (by @imssurya in #2527) -
perf: serve requests with less repeated work. A compilation's public and output paths are templated once rather than on every request, a request that is not for the
hotendpoint is told so without parsing its url, andhotkeeps each build's payloads instead of its stats, formatting a build's problems once rather than again for every client that connects. (by @alexander-akait in #2526) -
Start the hot client only in a page or a web worker, so a universal build runs quietly in Deno and Bun as it does in Node, instead of failing to connect there. Decide in each build which entry points need the client, from the entries the build really has, so an
entryfunction, an alias and entries other plugins add are seen as they are, and a child compiler's compilation gets none.hotno longer throws with Rspack, which has nowebpack.dependenciesfor the worker hook. (by @alexander-akait in #2520) -
Hot-update the fix after a build error instead of reloading the page: an error thrown while applying an update now reloads only when no newer build waits to be applied. (by @alexander-akait in #2525)