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/packages/rsbuild-plugin/interfaces/LynxPerformance.md.
Lynx
  • 简体中文
  • 接口: LynxPerformance

    Lynx 构建引擎的性能选项。

    属性

    profile?

    optional profile?: boolean

    是否在 ReactLynx 等 Lynx 运行时集成中采集耗时信息。

    备注

    开启后,框架会通过 console.profile 输出运行时信息。

    默认值

    当 DEBUG=lynx 时为 true,否则为 undefined

    示例

    import { defineConfig } from '@rsbuild/core'
    import { pluginLynx } from '@lynx-js/rsbuild-plugin'
    
    export default defineConfig({
      plugins: [
        pluginLynx({
          performance: { profile: true },
        }),
      ],
    })
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。