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

pluginReactLynx() function

Create a rsbuild plugin for ReactLynx.

Signature:

export declare function pluginReactLynx(userOptions?: PluginReactLynxOptions): RsbuildPlugin;

Parameters

Parameter Type Description
userOptions PluginReactLynxOptions (Optional)

Returns:

RsbuildPlugin

Example

// rsbuild.config.ts
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
export default {
  plugins: [pluginReactLynx()]
}
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.