Home > @lynx-js/react-rsbuild-plugin > CompatVisitorConfig > addComponentElement
CompatVisitorConfig.addComponentElement property
Controls whether to add wrapper elements for components
Signature:
Remarks
Default value: false
Example 1
Add a <view> wrapper element for all components during runtime.
Example 2
Only add component element during compilation. Note that this only take effects on Component imported from CompatVisitorConfig.oldRuntimePkg.

