Skip to content

API / wxt / WxtBuilder

Interface: WxtBuilder ​

Source: packages/wxt/src/types.ts:1258

Contents ​

Properties ​

name ​

name: string

Source: packages/wxt/src/types.ts:1260

Name of tool used to build. Ex: "Vite" or "Webpack".


version ​

version: string

Source: packages/wxt/src/types.ts:1262

Version of tool used to build. Ex: "5.0.2"

Methods ​

build() ​

build(group): Promise<BuildStepOutput>

Source: packages/wxt/src/types.ts:1274

Build a single entrypoint group. This is effectively one of the multiple "steps" during the build process.

Parameters ​

group ​

EntrypointGroup

Returns ​

Promise<BuildStepOutput>


createServer() ​

createServer(info): Promise<WxtBuilderServer>

Source: packages/wxt/src/types.ts:1276

Start a dev server at the provided port.

Parameters ​

info ​

ServerInfo

Returns ​

Promise<WxtBuilderServer>


importEntrypoint() ​

importEntrypoint<T>(this, path): Promise<T>

Source: packages/wxt/src/types.ts:1267

Import a JS entrypoint file, returning the default export containing the options.

Type Parameters ​

T ​

T

Parameters ​

this ​

WxtBuilder

path ​

string

Returns ​

Promise<T>


importEntrypoints() ​

importEntrypoints(paths): Promise<Record<string, unknown>[]>

Source: packages/wxt/src/types.ts:1269

Import a list of JS entrypoint files, returning their options.

Parameters ​

paths ​

string[]

Returns ​

Promise<Record<string, unknown>[]>


Generated using typedoc-plugin-markdown and TypeDoc