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/genui/reactlynx/functions/buildReactLynx.md.
Lynx
  • English
  • Function: buildReactLynx()

    buildReactLynx(source: ReactLynxSource, signal: AbortSignal, onStatus: (status: ReactLynxBuildStatus) => void): Promise<ReactLynxBuildAsset[]>

    Compile generated source into Web and Native assets in an isolated Node.js process.

    Parameters

    ParameterTypeDescription
    sourceReactLynxSourceComplete two-file source validated by parseReactLynxSource.
    signalAbortSignalCancels queued or running compilation.
    onStatus(status: ReactLynxBuildStatus) => voidReceives queue and compiler progress.

    Returns

    Promise<ReactLynxBuildAsset[]>

    Every emitted asset, including main.web.js and main.lynx.js.

    Remarks

    Keep this entry external when bundling your server so its adjacent worker remains available.

    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.