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

# Class: MainThreadRuntimeWrapperWebpackPlugin

external bundle 的主线程运行时包装器。

## Constructors

### Constructor

> **new MainThreadRuntimeWrapperWebpackPlugin**(`options?`: `Partial`\<[`MainThreadRuntimeWrapperWebpackPluginOptions`](/next/zh/api/packages/lynx-bundle-rslib-config/interfaces/MainThreadRuntimeWrapperWebpackPluginOptions.md)>): `MainThreadRuntimeWrapperWebpackPlugin`

#### Parameters

| Parameter | Type                                                                                                                                                                    |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `options` | `Partial`\<[`MainThreadRuntimeWrapperWebpackPluginOptions`](/next/zh/api/packages/lynx-bundle-rslib-config/interfaces/MainThreadRuntimeWrapperWebpackPluginOptions.md)> |

#### Returns

`MainThreadRuntimeWrapperWebpackPlugin`

## Methods

### apply()

> **apply**(`compiler`: `Compiler`): `void`

#### Parameters

| Parameter  | Type       |
| ---------- | ---------- |
| `compiler` | `Compiler` |

#### Returns

`void`
