Home > @lynx-js/config-rsbuild-plugin > pluginLynxConfig

pluginLynxConfig() function

A rsbuild plugin for config Lynx Config defined by @lynx-js/type-config.

Signature:

export declare function pluginLynxConfig(config: Config, options?: Options): RsbuildPlugin;

Parameters

ParameterTypeDescription
configConfigThe Lynx config to set.
optionsOptions(Optional)

Returns:

RsbuildPlugin

Example

import { pluginLynxConfig } from '@lynx-js/config-rsbuild-plugin'
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  plugins: [
    pluginLynxConfig({
      enableCheckExposureOptimize: false,
    }),
  ],
})
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.