npm / @rspack/dev-server
@rspack/dev-server
What changed in @rspack/dev-server 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-28.
37 breaking1 new APIs and options5 tooling5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rspack/dev-server 221 changes
Breaking changes 14
Default HPM logging is reduced.
The default IPC socket was renamed.
The bonjour feature has been removed.
The
bypassoption is no longer supported after the http-proxy-middleware update.connect replaces express as the default server.
Functionality provided by serve-index has been removed.
The internalIP methods have been removed.
The
pathoption is no longer supported after the http-proxy-middleware update.The package is now pure ESM, affecting how it can be imported and used.
selfsigned is now an optional peer dependency.
The serve-index dependency and its related functionality have been removed.
SockJS support has been removed.
SPDY support has been removed.
The webpack-prefixed serve environment variable was replaced with
RSPACK_SERVE.
New APIs and options 1
A LiteralUnion type was added for use in type definitions.
Tooling 3
The package's peer dependency range was updated, which may affect compatibility when installing it alongside peer dependencies.
The dev server now prints URL logs in the Rsbuild style.
@rspack/dev-server v2 is designed for Rspack v2.
Fixes and other changes 3
Full reloads are skipped in workers.
The WebSocket URL is resolved from the page origin in blob workers.
Bundles ws types in declarations, making them available to consumers of the package declarations.
@rspack/dev-server 127 changes
Breaking changes 23
The sockjs transport value is no longer available; the migration example uses ws.
When omitted, devServer.app now creates a connect-next app instead of an Express app.
Removed; directory listings can be added by installing serve-index and registering it with setupMiddlewares.
Glob patterns are no longer supported by the underlying watcher; watch a directory and filter with ignored, or expand the glob first.
Replaces logLevel and logProvider for configuring proxy logging.
Replaced by logger.
Node.js 18 is no longer supported; the minimum supported version is ^20.19.0 || >=22.12.0.
Proxy event handlers, including proxyReq, proxyRes, and proxyReqWs, are now configured under on.
Moved under the on option.
Use pathFilter instead of proxy[].path to select paths.
Removed; use pathFilter or router instead. Its previous boolean and data-sending behavior is no longer available in the same way.
Removed; use pathFilter or context instead.
Version 2 is designed to work with Rspack v2; Rspack v1 is no longer supported.
No longer bundled as a direct dependency; install it in your project if HTTPS or HTTP/2 needs generated local certificates.
The spdy value is no longer supported; switch to http2 or https.
SockJS bundle routes were removed.
Renamed to RSPACK_DEV_SERVER_BASE_PORT.
The URL query flag is renamed to rspack-dev-server-hot.
The URL query flag is renamed to rspack-dev-server-live-reload.
Renamed to RSPACK_DEV_SERVER_PORT_RETRY.
Built-in routes are renamed to /rspack-dev-server/*.
The sockjs value and { type: "sockjs" } configuration are no longer available.
Removed; use path instead.
Tooling 2
Ported webpack-dev-server.
The default app uses connect-next, which keeps the Connect middleware interface while being smaller than Express and having fewer dependencies.
Fixes and other changes 2
Fixed a named export.
Loosened the isMultiCompiler check.