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.reactloaderoptions.experimental_transformbuiltinattributenames.md.
这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/react-webpack-plugin > ReactLoaderOptions > experimental_transformBuiltinAttributeNames

ReactLoaderOptions.experimental_transformBuiltinAttributeNames property

Transform attribute names on Lynx builtin elements.

Signature:

experimental_transformBuiltinAttributeNames?: boolean | TransformBuiltinAttributeNamesOptions | undefined;

Remarks

false disables the conversion. true applies the default rule: onClick becomes bindtap, onCatchTap becomes catchtap, other onXXX names become bindxxx, and remaining camelCase names become dash-case. An object provides serializable custom rules. Exact entries in rename take precedence over preserve, followed by the fallback behavior selected by mode.

Explicit JSX attributes are transformed at compile time. Attributes supplied through JSX spreads are transformed at runtime with the same rules.