Skip to content

API > wxt > Wxt

Interface: Wxt ​

Contents ​

Properties ​

builder ​

builder: WxtBuilder

The module in charge of executing all the build steps.

Source ​

packages/wxt/src/types.ts:1529


config ​

config: ResolvedConfig

Source ​

packages/wxt/src/types.ts:1516


hook ​

hook: <NameT>(name, function_, options?) => () => void

Alias for wxt.hooks.hook(...).

Type parameters ​

▪ NameT extends HookKeys<WxtHooks>

Parameters ​

▪ name: NameT

▪ function_: InferCallback<WxtHooks, NameT>

▪ options?: object

▪ options.allowDeprecated?: boolean

Returns ​

(): void

Source ​

node_modules/.bun/hookable@6.1.0/node_modules/hookable/dist/index.d.mts:39

Source ​

packages/wxt/src/types.ts:1519


hooks ​

hooks: Hookable<WxtHooks, HookKeys<WxtHooks>>

Source ​

packages/wxt/src/types.ts:1517


logger ​

logger: WxtLogger

Wraps config.logger, adding warnOnce.

Source ​

packages/wxt/src/types.ts:1521


pm ​

pm: WxtPackageManager

Package manager utilities.

Source ​

packages/wxt/src/types.ts:1525


reloadConfig ​

reloadConfig: () => Promise<void>

Reload config file and update wxt.config with the result.

Source ​

packages/wxt/src/types.ts:1523


server ​

server?: WxtDevServer

If the dev server was started, it will be available.

Source ​

packages/wxt/src/types.ts:1527


Generated using typedoc-plugin-markdown and TypeDoc