For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/packages/react-rsbuild-plugin/interfaces/ExtractStrConfig.md.
Lynx
  • English
  • Interface: ExtractStrConfig

    Merge same string literals in JS and Lepus to reduce output bundle size. Set to false to disable.

    Properties

    strLength

    strLength: number

    The minimum length of string literals to be extracted.

    Default Value

    20

    Example

    import { defineConfig } from '@lynx-js/rspeedy'
    import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
    
    export default defineConfig({
      plugins: [
        pluginReactLynx({
          extractStr: {
            strLength: 10,
          },
        })
      ],
    })
    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.