API > wxt > UnlistedScriptDefinition
Interface: UnlistedScriptDefinition
Contents
Extends
Properties
exclude
exclude?:
string
[]
List of target browsers to exclude this entrypoint from. Cannot be used with include
. You must choose one of the two options.
Default
undefined
Inherited from
Source
packages/wxt/src/types/index.ts:549
include
include?:
string
[]
List of target browsers to include this entrypoint in. Defaults to being included in all builds. Cannot be used with exclude
. You must choose one of the two options.
Default
undefined
Inherited from
Source
packages/wxt/src/types/index.ts:542
Methods
main()
main():
any
Main function executed when the unlisted script is ran.
When running a content script with browser.scripting.executeScript
, values returned from this function will be returned in the executeScript
result as well. Otherwise returning a value does nothing.
Source
packages/wxt/src/types/index.ts:807
Generated using typedoc-plugin-markdown and TypeDoc