Skip to content

API / wxt / ResolvedConfig

Interface: ResolvedConfig

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

Contents

Properties

alias

alias: Record<string, string>

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

Import aliases to absolute paths.


analysis

analysis: object

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

enabled

enabled: boolean

keepArtifacts

keepArtifacts: boolean

open

open: boolean

outputDir

outputDir: string

The directory where the final stats.html file is located

outputFile

outputFile: string

Absolute file path to the stats.html file

outputName

outputName: string

Name of the stats.html file, minus ".html"

template

template: NonNullable<TemplateType | undefined>


browser

browser: string

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


builtinModules

builtinModules: WxtModule<any>[]

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


command

command: WxtCommand

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


debug

debug: boolean

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


dev

dev: object

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

reloadCommand

reloadCommand: string | false

server?

optional server?: object

Only defined during dev command

server.host

host: string

server.origin

origin: string

server.port

port: number

server.strictPort

strictPort: boolean

server.watchDebounce

watchDebounce: number

The milliseconds to debounce when a file is saved before reloading. The only way to set this option is to set the WXT_WATCH_DEBOUNCE environment variable, either globally (like in .bashrc file) or per-project (in .env file).

For example:

# ~/.zshrc
export WXT_WATCH_DEBOUNCE=1000

Or

# .env
WXT_WATCH_DEBOUNCE=1000
Default
ts
800

entrypointsDir

entrypointsDir: string

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


env

env: ConfigEnv

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


experimental

experimental: object

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

escapeUnicode

escapeUnicode: boolean


filterEntrypoints?

optional filterEntrypoints?: Set<string>

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


fsCache

fsCache: FsCache

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


hooks

hooks: NestedHooks<WxtHooks>

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


imports

imports: WxtResolvedUnimportOptions

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


logger

logger: WxtLogger

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


manifest

manifest: UserManifest

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


manifestVersion

manifestVersion: TargetManifestVersion

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


mode

mode: string

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


modulesDir

modulesDir: string

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


outBaseDir

outBaseDir: string

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

Absolute path to the .output directory

Example

ts
'/path/to/project/.output';

outDir

outDir: string

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

Absolute path to the target output directory.

Example

ts
'/path/to/project/.output/chrome-mv3';

plugins

plugins: string[]

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

An array of string to import plugins from. These paths should be resolvable by vite, and they should export default defineWxtPlugin(...).

Example

ts
['@wxt-dev/module-vue/plugin', 'wxt-module-google-analytics/plugin'];

publicDir

publicDir: string

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


root

root: string

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


runner

runner: ExtensionRunner

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


srcDir

srcDir: string

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


suppressWarnings

suppressWarnings: object

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

List of warning identifiers to suppress during the build process.

firefoxDataCollection?

optional firefoxDataCollection?: boolean

firefoxId?

optional firefoxId?: boolean


targetBrowsers

targetBrowsers: string[]

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


typesDir

typesDir: string

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


userConfigMetadata

userConfigMetadata: Omit<C12ResolvedConfig<UserConfig>, "config">

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


userModules

userModules: WxtModuleWithMetadata<any>[]

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


vite

vite: (env) => WxtViteConfig | Promise<WxtViteConfig>

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

Parameters

env

ConfigEnv

Returns

WxtViteConfig | Promise<WxtViteConfig>


watchOptions

watchOptions: WatchOptions

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

Chokidar options used by dev-mode file watchers.


webExt

webExt: ResolvedConfig<WebExtConfig>

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


wxtDir

wxtDir: string

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

Absolute path pointing to .wxt directory in project root.

Example

ts
'/path/to/project/.wxt';

wxtModuleDir

wxtModuleDir: string

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

Absolute path pointing to the node_modules/wxt directory, wherever WXT is installed.


zip

zip: object

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

artifactTemplate

artifactTemplate: string

compressionLevel

compressionLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

dotSources

dotSources: boolean

downloadedPackagesDir

downloadedPackagesDir: string

downloadPackages

downloadPackages: string[]

exclude

exclude: string[]

excludeSources

excludeSources: string[]

includeSources

includeSources: string[]

name?

optional name?: string

sourcesRoot

sourcesRoot: string

sourcesTemplate

sourcesTemplate: string

zipSources

zipSources: boolean

If true, when zipping the extension, also zip the sources.


Generated using typedoc-plugin-markdown and TypeDoc