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/packages/react-rsbuild-plugin/interfaces/ReactCompileResultExposureV1.md.
Lynx
  • English
  • Interface: ReactCompileResultExposureV1

    Versioned React compilation-result exposure retrieved with api.useExposed(Symbol.for('@lynx-js/react/internal:compile-result')).

    Properties

    version

    version: 1

    The exposure protocol version.

    Methods

    getCompileResult()

    getCompileResult(stats: Stats | MultiStats): ReactCompileResult | undefined

    Read semantic runtime requirements from the supplied compilations.

    Parameters

    ParameterTypeDescription
    statsStats | MultiStatsOriginal Stats or MultiStats objects, read before the build is closed. Serialized Stats JSON is not supported; callers must handle absent stats and build errors before calling this method.

    Returns

    ReactCompileResult | undefined

    A known result, or undefined if any compilation has no compatible semantic producer. An explicit false remains distinct from unknown.

    Remarks

    MultiStats combines all child requirements with OR only when every child has a compatible result. Pass a single environment's Stats to read its result independently in a mixed-environment build.

    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.