Search
Home > @lynx-js/react-rsbuild-plugin > AddComponentElementConfig > compilerOnly
Whether to only add component element during compilation
Signature:
compilerOnly: boolean
Note that this only take effects on Component imported from CompatVisitorConfig.oldRuntimePkg.
Component
import { defineConfig } from '@lynx-js/rspeedy' import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin' export default defineConfig({ plugins: [ pluginReactLynx({ compat: { addComponentElement: { compilerOnly: true } }, }) ], })