KC's Workspace
Github
Preparing search index...
@kcconfigs/tsdown
<internal>
PluginContext
Interface PluginContext
interface
PluginContext
{
debug
:
LoggingFunction
;
error
:
(
e
:
string
|
RollupError
)
=>
never
;
fs
:
RolldownFsModule
;
getModuleInfo
:
GetModuleInfo
;
info
:
LoggingFunction
;
meta
:
PluginContextMeta
;
pluginName
:
string
;
warn
:
LoggingFunction
;
addWatchFile
(
id
:
string
)
:
void
;
emitFile
(
file
:
EmittedFile
)
:
string
;
getFileName
(
referenceId
:
string
)
:
string
;
getModuleIds
()
:
IterableIterator
<
string
>
;
load
(
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
,
>
,
)
:
Promise
<
ModuleInfo
>
;
parse
(
input
:
string
,
options
?:
ParserOptions
|
null
)
:
Program
;
resolve
(
source
:
string
,
importer
?:
string
,
options
?:
PluginContextResolveOptions
,
)
:
Promise
<
ResolvedId
|
null
>
;
}
Hierarchy (
View Summary
)
MinimalPluginContext
PluginContext
TransformPluginContext
Index
Properties
debug
error
fs
get
Module
Info
info
meta
plugin
Name
warn
Methods
add
Watch
File
emit
File
get
File
Name
get
Module
Ids
load
parse
resolve
Properties
debug
debug
:
LoggingFunction
error
error
:
(
e
:
string
|
RollupError
)
=>
never
fs
fs
:
RolldownFsModule
get
Module
Info
getModuleInfo
:
GetModuleInfo
info
info
:
LoggingFunction
meta
meta
:
PluginContextMeta
Readonly
plugin
Name
pluginName
:
string
warn
warn
:
LoggingFunction
Methods
add
Watch
File
addWatchFile
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
emit
File
emitFile
(
file
:
EmittedFile
)
:
string
Parameters
file
:
EmittedFile
Returns
string
get
File
Name
getFileName
(
referenceId
:
string
)
:
string
Parameters
referenceId
:
string
Returns
string
get
Module
Ids
getModuleIds
()
:
IterableIterator
<
string
>
Returns
IterableIterator
<
string
>
load
load
(
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
,
>
,
)
:
Promise
<
ModuleInfo
>
Parameters
options
:
{
id
:
string
;
resolveDependencies
?:
boolean
}
&
Partial
<
PartialNull
<
ModuleOptions
>
,
>
Returns
Promise
<
ModuleInfo
>
parse
parse
(
input
:
string
,
options
?:
ParserOptions
|
null
)
:
Program
Parameters
input
:
string
Optional
options
:
ParserOptions
|
null
Returns
Program
resolve
resolve
(
source
:
string
,
importer
?:
string
,
options
?:
PluginContextResolveOptions
,
)
:
Promise
<
ResolvedId
|
null
>
Parameters
source
:
string
Optional
importer
:
string
Optional
options
:
PluginContextResolveOptions
Returns
Promise
<
ResolvedId
|
null
>
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Properties
debug
error
fs
get
Module
Info
info
meta
plugin
Name
warn
Methods
add
Watch
File
emit
File
get
File
Name
get
Module
Ids
load
parse
resolve
Github
KC's Workspace
Loading...