github lynx-family/lynx-stack @lynx-js/cache-events-webpack-plugin@0.1.0

latest releases: @lynx-js/web-core@0.21.1, @lynx-js/kitten-lynx-test-infra@0.1.3, @lynx-js/web-worker-rpc@0.21.1...
14 hours ago

Minor Changes

  • BREAKING CHANGE (#2803)

    Drop webpack support — the plugins now target Rspack only. All public types come from @rspack/core instead of webpack (e.g. Compiler, Compilation, LoaderContext), and the webpack dependency is removed.

Patch Changes

  • Fix a memory leak in the cache-events runtime where the tt / globalThis method mocks were never uninstalled after all chunks loaded. (#2774)

    The mock functions installed on globalThis.loadDynamicComponent and tt[...] were left in place after loaded became true. Because they stayed reachable from globalThis / tt, their closures pinned the whole cache machinery (lynx_ce, setupList, the captured tt / GlobalEventEmitter and 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), onLoaded clears cleanupList, and setupList is reset so the setup closures can be collected.

  • Prefix Lynx runtime module names with webpack/runtime/ (e.g. Lynx async chunkswebpack/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-map sources entry under a file:// module-filename template they collapsed into an invalid URL authority (the space-containing name became the host) and broke SourceMapConsumer parsing. (#2642)

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.