Search
Home > @lynx-js/react-rsbuild-plugin > CompatVisitorConfig > oldRuntimePkg
Specifies the list of old runtime package names that need compatibility processing
Signature:
oldRuntimePkg: Array<string>
Default value: ['@lynx-js/react-runtime']
['@lynx-js/react-runtime']
import { defineConfig } from '@lynx-js/rspeedy' import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin' export default defineConfig({ plugins: [ pluginReactLynx({ compat: { oldRuntimePkg: ['@my-org/runtime', '@legacy/runtime'] }, }) ], })