For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/react-webpack-plugin.reactwebpackpluginoptions.runtimeversion.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/react-webpack-plugin > ReactWebpackPluginOptions > runtimeVersion

ReactWebpackPluginOptions.runtimeVersion property

The @lynx-js/react runtime version the app being compiled depends on. Stamped into the bundle as __RUNTIME_VERSION__ so a lazy bundle can be checked at runtime against the host's runtime version. Resolved by the caller (e.g. pluginReactLynx) against the app root; left undefined when it cannot be determined.

Signature:

runtimeVersion?: string | undefined;