> 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.

# Function: isPluginLynxRegistered()

> **isPluginLynxRegistered**(`host`: `object`, `environments`: `string`\[]): `boolean`

Lynx 构建引擎是否已注册。

## Parameters

| Parameter             | Type                              | Description              |
| --------------------- | --------------------------------- | ------------------------ |
| `host`                | \{ `isPluginExists`: `boolean`; } | 用于查找的 Rsbuild 实例或插件 API。 |
| `host.isPluginExists` | -                                 |                          |
| `environments`        | `string`\[]                       | 已配置的环境名称。                |

## Returns

`boolean`

## Remarks

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