Minor Changes
-
BREAKING CHANGE (#2803)
Drop webpack support — the plugins now target Rspack only. All public types come from
@rspack/coreinstead ofwebpack(e.g.Compiler,Compilation,LoaderContext), and thewebpackdependency is removed.
Patch Changes
-
Fix a memory leak in the cache-events runtime where the
tt/globalThismethod mocks were never uninstalled after all chunks loaded. (#2774)The mock functions installed on
globalThis.loadDynamicComponentandtt[...]were left in place afterloadedbecametrue. Because they stayed reachable fromglobalThis/tt, their closures pinned the whole cache machinery (lynx_ce,setupList, the capturedtt/GlobalEventEmitterand the original bound functions) for the entire app lifetime.The replay functions now restore the original methods (guarded so they only revert their own mocks),
onLoadedclearscleanupList, andsetupListis reset so the setup closures can be collected. -
Prefix Lynx runtime module names with
webpack/runtime/(e.g.Lynx async chunks→webpack/runtime/lynx async chunks), matching the path-structured naming of the bundler's built-in runtime modules. The previous bare names had no path segment, so when they appear as a source-mapsourcesentry under afile://module-filename template they collapsed into an invalid URL authority (the space-containing name became the host) and brokeSourceMapConsumerparsing. (#2642)