github lynx-family/lynx-stack @lynx-js/template-webpack-plugin@0.12.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...
13 hours ago

Minor Changes

  • Add unified debug-metadata.json per Lynx entry. (#2642)

    • New @lynx-js/debug-metadata schema package (zero-dep).
    • New @lynx-js/debug-metadata-rsbuild-plugin emits the file and serves ?field=… queries in dev.
    • JS //# sourceMappingURL= and tasm templateDebugUrl repointed at the new endpoint.
    • debug-info.json no longer written to disk.
    • Auto-registered by Rspeedy — zero user config.
  • 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.

  • Enable syncXElementRegistry in the generated page config by default. (#2784)

    This lets the runtime sync the XElement registry during page setup, so the open-source <input> / <textarea> map to the new XElement implementation (x-input-ng / x-textarea-ng) instead of the deprecated legacy elements.

Patch Changes

  • Encode entry templates concurrently on the shared worker pool, speeding up multi-page builds. (#2757)

  • Always inline a lazy bundle's background (bts) chunk. (#2715)

    A lazy bundle (appType: "DynamicComponent") runs its background synchronously when the bundle is required, so its bts must be inlined into app-service.js. Previously a non-matching inlineScripts matcher could externalize it via lynx.requireModuleAsync, leaving the module unavailable at installChunk time and breaking the bundle. The bts of a lazy bundle is now always inlined regardless of inlineScripts; the option still applies to card templates.

  • 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)

  • Updated dependencies [5891d0f, 7b135f4, 7b4616b]:

    • @lynx-js/web-core@0.21.1

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.