Home > @lynx-js/react-rsbuild-plugin

react-rsbuild-plugin package

A rsbuild plugin that integrates with ReactLynx.

Functions

FunctionDescription
pluginReactLynx(userOptions)Create a rsbuild plugin for ReactLynx.

Interfaces

InterfaceDescription
AddComponentElementConfigControls whether to add wrapper elements for components
CompatVisitorConfigThe compat option controls compatibilities with ReactLynx2.0.
DefineDceVisitorConfigLike define in various bundlers, but this one happens at transform time, and a DCE pass will be performed.
ExtractStrConfigMerge same string literals in JS and Lepus to reduce output bundle size. Set to false to disable.
PluginReactLynxOptionsOptions of pluginReactLynx()
ShakeVisitorConfigHow main-thread code will be shaken.