Home > @lynx-js/rspeedy > Performance > profile

Performance.profile property

Whether capture timing information in the build time and the runtime, the same as the profile config of Rspack.

Signature:

profile?: boolean | undefined;

Remarks

This option would be true when DEBUG environment variable contains rspeedy.

Example

Enable profile.

  • Rsbuild will auto-generate dist/stats.json file through bundle analyzer.

  • Rspack will include the build time information when generating stats.json.

  • Frameworks like ReactLynx will include runtime information using console.profile.

import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  performance: { profile: true },
})
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。