Home > @lynx-js/react-rsbuild-plugin > PluginReactLynxOptions
Options of pluginReactLynx()
Signature:
| Property | Modifiers | Type | Description |
|---|---|---|---|
| compat? | Partial<CompatVisitorConfig> & { disableCreateSelectorQueryIncompatibleWarning?: boolean; } | undefined | (Optional) The compat option controls compatibilities with ReactLynx2.0. | |
| customCSSInheritanceList? | string[] | undefined | (Optional) When PluginReactLynxOptions.enableCSSInheritance is enabled, customCSSInheritanceList can control which properties are inheritable, not just the default ones. | |
| debugInfoOutside? | boolean | (Optional) debugInfoOutside controls whether the debug info is placed outside the template. | |
| defaultDisplayLinear? | boolean | (Optional) defaultDisplayLinear controls whether the default value of display in CSS is linear. | |
| defineDCE? | Partial<DefineDceVisitorConfig> | undefined | (Optional) Like define in various bundlers, but this one happens at transform time, and a DCE pass will be performed. | |
| enableAccessibilityElement? | boolean | (Optional) enableAccessibilityElement set the default value of accessibility-element for all <view /> elements. | |
| enableCSSInheritance? | boolean | (Optional) enableCSSInheritance enables the default inheritance properties. | |
| enableCSSInvalidation? | boolean | (Optional) CSS Invalidation refers to the process of determining which elements need to have their styles recalculated when the DOM is updated. | |
| enableCSSSelector? | boolean | (Optional) enableCSSSelector controls whether enabling the new CSS implementation. | |
| enableNewGesture? | boolean | (Optional) enableNewGesture enables the new gesture system. | |
| enableRemoveCSSScope? | boolean | undefined | (Optional) enableRemoveCSSScope controls whether CSS is restrict to use in the component scope.
| |
| enableSSR? | boolean | (Optional) enableSSR enable Lynx SSR feature for this build. | |
| engineVersion? | string | (Optional) engineVersion specifies the minimum Lynx Engine version required for an App bundle to function properly. | |
| experimental_isLazyBundle? | boolean | (ALPHA) (Optional) Generate standalone lazy bundle. | |
| extractStr? | Partial<ExtractStrConfig> | boolean | (Optional) Merge same string literals in JS and Lepus to reduce output bundle size. Set to false to disable. | |
| firstScreenSyncTiming? | '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__ | |
| removeDescendantSelectorScope? | boolean | (Optional) removeDescendantSelectorScope is used to remove the scope of descendant selectors. | |
| shake? | Partial<ShakeVisitorConfig> | undefined | (Optional) How main-thread code will be shaken. | |
| targetSdkVersion? | string | (Optional) targetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on. |