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/functions/isPluginLynxRegistered.md.
Lynx
  • 简体中文
  • 函数: isPluginLynxRegistered()

    isPluginLynxRegistered(host: object, environments: string[]): boolean

    Lynx 构建引擎是否已注册。

    参数

    参数类型描述
    host{ isPluginExists: boolean; }用于查找的 Rsbuild 实例或插件 API。
    host.isPluginExists-
    environmentsstring[]已配置的环境名称。

    返回

    boolean

    备注

    该引擎是全局的。不传 environment 调用 isPluginExists 时只会报告全局插件,因此无法检测到调用方(例如 rslib)注册在某个 environment 上的引擎。

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