KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
<internal>
PluginContext
Interface PluginContext
interface
PluginContext
{
addWatchFile
:
(
id
:
string
)
=>
void
;
cache
:
PluginCache
;
debug
:
LoggingFunction
;
emitFile
:
EmitFile
;
environment
:
Environment
;
error
:
(
error
:
string
|
RollupError
)
=>
never
;
fs
:
RollupFsModule
;
getFileName
:
(
fileReferenceId
:
string
)
=>
string
;
getModuleIds
:
()
=>
IterableIterator
<
string
>
;
getModuleInfo
:
GetModuleInfo
;
getWatchFiles
:
()
=>
string
[]
;
info
:
LoggingFunction
;
load
:
(
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
,
>
,
)
=>
Promise
<
ModuleInfo
>
;
meta
:
PluginContextMeta
;
parse
:
ParseAst
;
resolve
:
(
source
:
string
,
importer
?:
string
,
options
?:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skipSelf
?:
boolean
;
}
,
)
=>
Promise
<
ResolvedId
|
null
>
;
setAssetSource
:
(
assetReferenceId
:
string
,
source
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
)
=>
void
;
warn
:
LoggingFunction
;
}
Hierarchy (
View Summary
)
MinimalPluginContext
PluginContext
TransformPluginContext
Index
Properties
add
Watch
File
cache
debug
emit
File
environment
error
fs
get
File
Name
get
Module
Ids
get
Module
Info
get
Watch
Files
info
load
meta
parse
resolve
set
Asset
Source
warn
Properties
add
Watch
File
addWatchFile
:
(
id
:
string
)
=>
void
cache
cache
:
PluginCache
debug
debug
:
LoggingFunction
emit
File
emitFile
:
EmitFile
environment
environment
:
Environment
Vite-specific environment instance
error
error
:
(
error
:
string
|
RollupError
)
=>
never
fs
fs
:
RollupFsModule
get
File
Name
getFileName
:
(
fileReferenceId
:
string
)
=>
string
get
Module
Ids
getModuleIds
:
()
=>
IterableIterator
<
string
>
get
Module
Info
getModuleInfo
:
GetModuleInfo
get
Watch
Files
getWatchFiles
:
()
=>
string
[]
info
info
:
LoggingFunction
load
load
:
(
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
,
>
,
)
=>
Promise
<
ModuleInfo
>
meta
meta
:
PluginContextMeta
parse
parse
:
ParseAst
resolve
resolve
:
(
source
:
string
,
importer
?:
string
,
options
?:
{
attributes
?:
Record
<
string
,
string
>
;
custom
?:
CustomPluginOptions
;
isEntry
?:
boolean
;
skipSelf
?:
boolean
;
}
,
)
=>
Promise
<
ResolvedId
|
null
>
set
Asset
Source
setAssetSource
:
(
assetReferenceId
:
string
,
source
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
)
=>
void
warn
warn
:
LoggingFunction
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Properties
add
Watch
File
cache
debug
emit
File
environment
error
fs
get
File
Name
get
Module
Ids
get
Module
Info
get
Watch
Files
info
load
meta
parse
resolve
set
Asset
Source
warn
Github
KC's Workspace
Loading...
Vite-specific environment instance