Minor Changes
-
BREAKING CHANGE: Remove
dev.client.websocketTransportpredatesLynxWebSocketModule, the native module Lynx has shipped since 2.16, so HMR always resolves@lynx-js/websocket— the binding to it. (#3684) -
Add
performanceto thepluginLynxoptions, alongsideoutput, and expose it on the configpluginLynxprovides. Rspeedy maps itsperformance.profileonto it, so a plugin can read the option from the build engine instead of requiring Rspeedy to be the caller.pluginReactLynxreads it from there instead of requiring Rspeedy. (#3691) -
Update the Rstack toolchain: Rspack 2.2.2, Rsbuild 2.2.3, Rslib 1.0.0 and Rstest 0.11.12. (#3793)
-
BREAKING CHANGE: Emit the intermediate files into
.lynxinstead of.rspeedy, since the directory is written by the Lynx build engine rather than by Rspeedy. The directory is no longer configurable:output.distPath.intermediatewas documented as never read, and nothing else reads it now either. (#3682)
Patch Changes
-
Do not apply the Lynx build engine again when
pluginLynxis registered on an environment rather than globally, which silently replaced the options it was given. (#3695) -
Enable
output.sourceMap.cssby default only in Lynx environments, so web builds no longer emit unused CSS.mapfiles into the intermediate directory. (#3747) -
Accept
DEBUG=lynx(andlynx:*,lynx:template) for the Lynx debug output and intermediates. It is the recommended form now that the plugins also run under Rslib and Rsbuild;DEBUG=rspeedykeeps working. (#3735) -
Honor
output.distPath.intermediate. The Lynx build engine now resolves the intermediate directory, so the option is no longer ignored by the plugins that emit a Lynx bundle. (#3676) -
Write the bundle to disk during
devby default. A Lynx client reads it from disk as often as it reads it from the dev server, so the Lynx build engine now carries the default that only Rspeedy used to apply. (#3680) -
Use the Rspack
DevTooltype foroutput.sourceMap.js. It already covers the'-debugids'suffix, so Rspeedy no longer restates it. (#3664) -
Skip the built-in
pluginLynxwhen one is already applied, so a user who needs to configure the Lynx build engine can applypluginLynxthemselves and have their options win.@lynx-js/rspeedybecomes an optional peer dependency ofpluginReactLynxandpluginQRCode. (#3661) -
Updated dependencies [
643a52d,b854dec,f743e12,9bbfe5d,754ed35,ab041b7,0a52438,c6f971a,0c47383,b3c6045,08a36e3,abab087,7850e1e,3ab5ba3,eaefef6,e2ac811,3d63331,32ba734]:- @lynx-js/rsbuild-plugin@0.1.0