For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/rspeedy/external-bundle-rsbuild-plugin.reactlynxexternalspresetoptions.async.md.
Rspeedy logo
Rspeedy
  • English
  • Home > @lynx-js/external-bundle-rsbuild-plugin > ReactLynxExternalsPresetOptions > async

    ReactLynxExternalsPresetOptions.async property

    Load the ReactLynx runtime bundle asynchronously, for the web target.

    The web runtime (@lynx-js/web-core) can only fetch external bundles asynchronously (fetchBundle().then), so ReactLynx must be mounted as a promise that consuming modules await before reading a subpath (otherwise React.memo etc. are read off a pending promise and are undefined). Enabling this also resolves the web-encoded @lynx-js/react-umd/{dev,prod}-web bundle and defaults bundlePath to react.web.bundle.

    Signature:

    async?: boolean;

    Default Value

    false

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.