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

CompatVisitorConfig.disableDeprecatedWarning property

Whether to disable deprecated warnings

Signature:

disableDeprecatedWarning: boolean

Remarks

Default value: false

Example

Disable all the DEPRECATED: warnings.

import { defineConfig } from '@lynx-js/rspeedy'
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'

export default defineConfig({
  plugins: [
    pluginReactLynx({
      compat: {
        disableDeprecatedWarning: true
      },
    })
  ],
})