For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/react-rsbuild-plugin.reactcompileresultexposurev1.getcompileresult.md.
This is the dev preview website. Check out the document at lynx-stack.dev

Home > @lynx-js/react-rsbuild-plugin > ReactCompileResultExposureV1 > getCompileResult

ReactCompileResultExposureV1.getCompileResult() method

Read semantic runtime requirements from the supplied compilations.

Signature:

getCompileResult(stats: Rspack.Stats | Rspack.MultiStats): ReactCompileResult | undefined;

Parameters

Parameter

Type

Description

stats

Rspack.Stats | Rspack.MultiStats

Original 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.