Skip to content

API > wxt > WxtBuilder

Interface: WxtBuilder ​

Contents ​

Properties ​

name ​

name: string

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

Source ​

packages/wxt/src/types.ts:1260


version ​

version: string

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

Source ​

packages/wxt/src/types.ts:1262

Methods ​

build() ​

build(group): Promise<BuildStepOutput>

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

Parameters ​

▪ group: EntrypointGroup

Source ​

packages/wxt/src/types.ts:1274


createServer() ​

createServer(info): Promise<WxtBuilderServer>

Start a dev server at the provided port.

Parameters ​

▪ info: ServerInfo

Source ​

packages/wxt/src/types.ts:1276


importEntrypoint() ​

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

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

Type parameters ​

▪ T

Parameters ​

▪ this: WxtBuilder

▪ path: string

Source ​

packages/wxt/src/types.ts:1267


importEntrypoints() ​

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

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

Parameters ​

▪ paths: string[]

Source ​

packages/wxt/src/types.ts:1269


Generated using typedoc-plugin-markdown and TypeDoc