Interface: ResolvedConfig
Contents
Properties
alias
alias:
Record<string,string>
Import aliases to absolute paths.
Source
packages/wxt/src/types/index.ts:1204
analysis
analysis:
object
Type declaration
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<undefined|TemplateType>
Source
packages/wxt/src/types/index.ts:1188
browser
browser:
string
Source
packages/wxt/src/types/index.ts:1165
builtinModules
builtinModules:
WxtModule<any>[]
Source
packages/wxt/src/types/index.ts:1218
command
command:
WxtCommand
Source
packages/wxt/src/types/index.ts:1164
debug
debug:
boolean
Source
packages/wxt/src/types/index.ts:1158
dev
dev:
object
Type declaration
reloadCommand
reloadCommand:
string|false
server
server?:
object
Only defined during dev command
server.hostname
server.hostname:
string
server.port
server.port:
number
Source
packages/wxt/src/types/index.ts:1209
entrypointsDir
entrypointsDir:
string
Source
packages/wxt/src/types/index.ts:1143
env
env:
ConfigEnv
Source
packages/wxt/src/types/index.ts:1167
experimental
experimental:
object
Type declaration
entrypointImporter
entrypointImporter:
"jiti"|"vite-runtime"|"vite-node"
includeBrowserPolyfill
includeBrowserPolyfill:
boolean
Source
packages/wxt/src/types/index.ts:1205
filterEntrypoints
filterEntrypoints?:
Set<string>
Source
packages/wxt/src/types/index.ts:1145
fsCache
fsCache:
FsCache
Source
packages/wxt/src/types/index.ts:1171
hooks
hooks:
NestedHooks<WxtHooks>
Source
packages/wxt/src/types/index.ts:1217
imports
imports:
false|WxtResolvedUnimportOptions
Source
packages/wxt/src/types/index.ts:1169
logger
logger:
Logger
Source
packages/wxt/src/types/index.ts:1168
manifest
manifest:
Partial<Omit<WebExtensionManifest,"background"|"chrome_url_overrides"|"devtools_page"|"manifest_version"|"options_page"|"options_ui"|"sandbox">>
Source
packages/wxt/src/types/index.ts:1170
manifestVersion
manifestVersion:
TargetManifestVersion
Source
packages/wxt/src/types/index.ts:1166
mode
mode:
string
Source
packages/wxt/src/types/index.ts:1163
modulesDir
modulesDir:
string
Source
packages/wxt/src/types/index.ts:1144
outBaseDir
outBaseDir:
string
Absolute path to the .output directory
Example
"/path/to/project/.output"Source
packages/wxt/src/types/index.ts:1151
outDir
outDir:
string
Absolute path to the target output directory.
Example
"/path/to/project/.output/chrome-mv3"Source
packages/wxt/src/types/index.ts:1157
plugins
plugins:
string[]
An array of string to import plugins from. These paths should be resolvable by vite, and they should export default defineWxtPlugin(...).
Example
["@wxt-dev/module-vue/plugin", "wxt-module-google-analytics/plugin"]Source
packages/wxt/src/types/index.ts:1227
publicDir
publicDir:
string
Source
packages/wxt/src/types/index.ts:1135
root
root:
string
Source
packages/wxt/src/types/index.ts:1133
runnerConfig
runnerConfig:
ResolvedConfig<ExtensionRunnerConfig,ConfigLayerMeta>
Source
packages/wxt/src/types/index.ts:1172
srcDir
srcDir:
string
Source
packages/wxt/src/types/index.ts:1134
transformManifest
transformManifest?: (
manifest) =>void
Parameters
▪ manifest: WebExtensionManifest
Returns
Deprecated
Use build:manifestGenerated hook instead.
Source
packages/wxt/src/types/index.ts:1187
typesDir
typesDir:
string
Source
packages/wxt/src/types/index.ts:1142
userConfigMetadata
userConfigMetadata:
Omit<ResolvedConfig<UserConfig,ConfigLayerMeta>,"config">
Source
packages/wxt/src/types/index.ts:1200
userModules
userModules:
WxtModuleWithMetadata<any>[]
Source
packages/wxt/src/types/index.ts:1219
vite
vite: (
env) =>WxtViteConfig|Promise<WxtViteConfig>
Parameters
▪ env: ConfigEnv
Source
packages/wxt/src/types/index.ts:391
wxtDir
wxtDir:
string
Absolute path pointing to .wxt directory in project root.
Example
"/path/to/project/.wxt"Source
packages/wxt/src/types/index.ts:1141
wxtModuleDir
wxtModuleDir:
string
Absolute path pointing to the node_modules/wxt directory, wherever WXT is installed.
Source
packages/wxt/src/types/index.ts:1162
zip
zip:
object
Type declaration
artifactTemplate
artifactTemplate:
string
compressionLevel
compressionLevel:
0|1|2|3|9|4|5|6|7|8
downloadPackages
downloadPackages:
string[]
downloadedPackagesDir
downloadedPackagesDir:
string
excludeSources
excludeSources:
string[]
includeSources
includeSources:
string[]
name
name?:
string
sourcesRoot
sourcesRoot:
string
sourcesTemplate
sourcesTemplate:
string
Source
packages/wxt/src/types/index.ts:1173
Generated using typedoc-plugin-markdown and TypeDoc