Skip to content

@lynx-js/react-webpack-plugin@0.15.4

Choose a tag to compare

@github-actions github-actions released this 05 Dec 13:39
e40bcf9

Patch Changes

  • Exclude virtual defines modules written by DefinesInjection from compilation.fileDependencies in afterCompile so file watchers do not report missing-file removals and trigger spurious dev rebuilds. (#4499)

  • Optimize build and dev/HMR main-thread overhead in DefinesInjection and @lynx-js/debug-metadata-rsbuild-plugin: (#4502)

    • Index compilation.modules in a single pass and cache moduleGraph.getOutgoingConnections and per-module define presence within each finishMake pass to avoid repeated linear scans and redundant NAPI calls across entries.
    • Pass debug-metadata.json in memory via WeakMap between beforeEncode and beforeEmit to eliminate double serialization, and defer parseDebugInfoUnits in dev mode until bytecode debug info is requested via middleware.
  • Process entry definition injection serially to prevent multi-entry builds from reading the Rspack module graph while another entry is adding or rebuilding modules. (#4496)

  • Skip writing the generated defines module when its contents are unchanged during a rebuild. (#4491)