Skip to content

Commit 439a53e

Browse files
Merge remote-tracking branch 'origin/main' into feat/multi-compiler-plugin-mode
2 parents 27453ab + dc9a72c commit 439a53e

92 files changed

Lines changed: 6413 additions & 7197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"webpack-dev-server": minor
3+
---
4+
5+
The browser client, the error overlay and both transports now come from webpack-dev-middleware, so this package has no client code of its own. Every option keeps its name and meaning, `allowedHosts` and the origin checks still apply here, and this server's `{ type }` messages are still sent next to the middleware's, so React Refresh keeps working. `client/index.js`, `client/socket.js` and `client/clients/WebSocketClient.js` still resolve while the client's internal files are gone, and the console wording, the overlay and the progress indicator are now the middleware's. `client.webSocketTransport: "sse"` adds Server-Sent Events, a universal build now runs in Node without the client throwing, and `sendMessage()`, `getClientEntry()` and `getClientHotEntry()` still work, a subclass's overrides included, but are deprecated.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ test/fixtures/reload-config/main.css
2626
test/fixtures/reload-config-2/main.css
2727
test/fixtures/worker-config-dev-server-false/public
2828
!/test/fixtures/static-config/public/node_modules
29+
test/fixtures/compatibility-config/changing.cjs

‎README.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,13 @@ See [**the documentation**][docs-url] for more use cases and options.
259259

260260
## Browser Support
261261

262-
While `webpack-dev-server` transpiles the client (browser) scripts to an ES5
263-
state, the project only officially supports the _last two versions of major
264-
browsers_. We simply don't have the resources to support every whacky
265-
browser out there.
262+
The browser runtime is [webpack-dev-middleware]'s, which ships as ES5 and uses
263+
no built-in newer than ES5 beyond `Promise`, the transport in use and what hot
264+
module replacement itself needs. As before, the project only officially
265+
supports the _last two versions of major browsers_. We simply don't have the
266+
resources to support every whacky browser out there.
267+
268+
[webpack-dev-middleware]: https://github.com/webpack/webpack-dev-middleware#client-options
266269

267270
If you find a bug with an obscure / old browser, we would actively welcome a
268271
Pull Request to resolve the bug.

‎client-src/clients/WebSocketClient.js‎

Lines changed: 0 additions & 42 deletions
This file was deleted.

‎client-src/globals.d.ts‎

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)