Home > @lynx-js/react-rsbuild-plugin > PluginReactLynxOptions
#PluginReactLynxOptions interface
Options of pluginReactLynx()
Signature:
export interface PluginReactLynxOptions #Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Partial<CompatVisitorConfig> & { disableCreateSelectorQueryIncompatibleWarning?: boolean; } | undefined |
(Optional) The | ||
|
string[] | undefined |
(Optional) When PluginReactLynxOptions.enableCSSInheritance is enabled, | ||
|
boolean |
(Optional) debugInfoOutside controls whether the debug info is placed outside the template. | ||
|
boolean |
(Optional) defaultDisplayLinear controls whether the default value of If | ||
|
Partial<DefineDceVisitorConfig> | undefined |
(Optional) Like | ||
|
boolean |
(Optional) enableAccessibilityElement set the default value of | ||
|
boolean |
(Optional) enableCSSInheritance enables the default inheritance properties. | ||
|
boolean |
(Optional) CSS Invalidation refers to the process of determining which elements need to have their styles recalculated when the DOM is updated. | ||
|
boolean |
(Optional) enableCSSSelector controls whether enabling the new CSS implementation. | ||
|
boolean |
(Optional) enableNewGesture enables the new gesture system. | ||
|
boolean | undefined |
(Optional) enableRemoveCSSScope controls whether CSS is restrict to use in the component scope.
| ||
|
boolean |
(Optional) | ||
|
boolean |
(Optional) Enable UI source map generation and debug-metadata asset emission. | ||
|
string |
(Optional) | ||
|
boolean |
(ALPHA) (Optional) Generate standalone lazy bundle. | ||
|
Partial<ExtractStrConfig> | boolean |
(Optional) Merge same string literals in JS and Lepus to reduce output bundle size. Set to | ||
|
'immediately' | 'jsReady' |
(Optional) This flag controls when MainThread (Lepus) transfers control to Background after the first screen This flag has two options:
After handing over control, MainThread (Lepus) runtime can no longer respond to data updates, and data updates will be forwarded to background (JS Runtime) and processed __asynchronously__ | ||
|
'reactive' | 'event' |
(Optional) Configure the update mode of This flag has two options:
| ||
|
boolean | { mainThread?: boolean; background?: boolean; } |
(Optional) Optimize bundle size by removing unused code by Minify.mainThreadOptions and Minify.backgroundOptions. When optimizeBundleSize or optimizeBundleSize.mainThread is true, main-thread code will be optimized. When optimizeBundleSize or optimizeBundleSize.background is true, background code will be optimized. | ||
|
boolean |
(Optional) removeDescendantSelectorScope is used to remove the scope of descendant selectors. | ||
|
Partial<ShakeVisitorConfig> | undefined |
(Optional) How main-thread code will be shaken. | ||
|
string |
(Optional) targetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on. |

