Skip to content

@lynx-js/external-bundle-rsbuild-plugin@0.4.1

Choose a tag to compare

@github-actions github-actions released this 26 Jul 13:49
5d05629

Patch Changes

  • Ship the refresh runtime in the shared external bundle so it is loaded once instead of per card. (#3009)

    @lynx-js/react/refresh was missing from both the react-umd entry and the reactlynx externals preset, so every card bundled its own copy. Each copy overwrites options.debounceRendering on the shared ReactLynx runtime with a closure that defers through that card's own Promise. The last card loaded wins, and once it is destroyed its microtask queue stops draining — the lost flush leaves Preact's scheduling counter set, so no card in the shared context ever re-renders again.

    Only the development bundle carries it; the production bundle is unchanged in size.