For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/build/tools/rsdoctor.md.
Lynx
  • 简体中文
  • tools.rsdoctor

    optional rsdoctor?: RsdoctorRspackPluginOptions

    仅适用于 Rspeedy

    此配置仅由 Rspeedy 的 lynx.config.ts 接受,Rsbuild + pluginLynx 不支持。请勿直接写入 rsbuild.config.ts,也不要传给 pluginLynx()。

    Tools.rsdoctor 用于控制 Rsdoctor 的选项。

    默认值

    undefined

    备注

    设置 RSDOCTOR=true 可启用 Rsdoctor。启用后,Rspeedy 会在配置规范化阶段合并额外的插件默认配置。

    示例

    • 使用内置的 Rsdoctor。
    import { defineConfig } from '@lynx-js/rspeedy'
    
    export default defineConfig({
      tools: {
        rsdoctor: {
          disableClientServer: true,
        },
      },
    })

    详见 Rsdoctor - Configuration。

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。