KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
<internal>
PluginContainer
Class PluginContainer
Index
Constructors
constructor
Accessors
options
Methods
build
Start
close
get
Module
Info
load
resolve
Id
transform
watch
Change
Constructors
constructor
new
PluginContainer
(
environments
:
Record
<
string
,
Environment
>
)
:
PluginContainer
Parameters
environments
:
Record
<
string
,
Environment
>
Returns
PluginContainer
Accessors
options
get
options
()
:
InputOptions
Returns
InputOptions
Methods
build
Start
buildStart
(
_options
?:
InputOptions
)
:
Promise
<
void
>
Parameters
Optional
_options
:
InputOptions
Returns
Promise
<
void
>
close
close
()
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Module
Info
getModuleInfo
(
id
:
string
)
:
ModuleInfo
|
null
Parameters
id
:
string
Returns
ModuleInfo
|
null
load
load
(
id
:
string
,
options
?:
{
ssr
?:
boolean
}
,
)
:
Promise
<
undefined
|
null
|
string
|
void
|
SourceDescription
>
Parameters
id
:
string
Optional
options
:
{
ssr
?:
boolean
}
Returns
Promise
<
undefined
|
null
|
string
|
void
|
SourceDescription
>
resolve
Id
resolveId
(
rawId
:
string
,
importer
?:
string
,
options
?:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skip
?:
Set
<
Plugin
<
any
>
>
;
skipCalls
?:
readonly
SkipInformation
[]
;
ssr
?:
boolean
;
}
,
)
:
Promise
<
PartialResolvedId
|
null
>
Parameters
rawId
:
string
Optional
importer
:
string
Optional
options
:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skip
?:
Set
<
Plugin
<
any
>
>
;
skipCalls
?:
readonly
SkipInformation
[]
;
ssr
?:
boolean
;
}
Returns
Promise
<
PartialResolvedId
|
null
>
transform
transform
(
code
:
string
,
id
:
string
,
options
?:
{
environment
?:
Environment
;
inMap
?:
null
|
string
|
ExistingRawSourceMap
;
ssr
?:
boolean
;
}
,
)
:
Promise
<
{
code
:
string
;
map
:
SourceMap
|
{
mappings
:
""
}
|
null
}
>
Parameters
code
:
string
id
:
string
Optional
options
:
{
environment
?:
Environment
;
inMap
?:
null
|
string
|
ExistingRawSourceMap
;
ssr
?:
boolean
;
}
Returns
Promise
<
{
code
:
string
;
map
:
SourceMap
|
{
mappings
:
""
}
|
null
}
>
watch
Change
watchChange
(
id
:
string
,
change
:
{
event
:
"update"
|
"create"
|
"delete"
}
,
)
:
Promise
<
void
>
Parameters
id
:
string
change
:
{
event
:
"update"
|
"create"
|
"delete"
}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
options
Methods
build
Start
close
get
Module
Info
load
resolve
Id
transform
watch
Change
Github
KC's Workspace
Loading...