KC's Workspace
Github
Preparing search index...
@kcconfigs/tsdown
<internal>
TransformPluginContext
Interface TransformPluginContext
interface
TransformPluginContext
{
debug
:
LoggingFunctionWithPosition
;
fs
:
RolldownFsModule
;
getModuleInfo
:
GetModuleInfo
;
info
:
LoggingFunctionWithPosition
;
meta
:
PluginContextMeta
;
pluginName
:
string
;
warn
:
LoggingFunctionWithPosition
;
addWatchFile
(
id
:
string
)
:
void
;
emitFile
(
file
:
EmittedFile
)
:
string
;
error
(
e
:
string
|
RollupError
,
pos
?:
number
|
{
column
:
number
;
line
:
number
}
,
)
:
never
;
getCombinedSourcemap
()
:
SourceMap
;
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
)
PluginContext
TransformPluginContext
Index
Properties
debug
fs
get
Module
Info
info
meta
plugin
Name
warn
Methods
add
Watch
File
emit
File
error
get
Combined
Sourcemap
get
File
Name
get
Module
Ids
load
parse
resolve
Properties
debug
debug
:
LoggingFunctionWithPosition
fs
fs
:
RolldownFsModule
get
Module
Info
getModuleInfo
:
GetModuleInfo
info
info
:
LoggingFunctionWithPosition
meta
meta
:
PluginContextMeta
Readonly
plugin
Name
pluginName
:
string
warn
warn
:
LoggingFunctionWithPosition
Methods
add
Watch
File
addWatchFile
(
id
:
string
)
:
void
Parameters
id
:
string
Returns
void
emit
File
emitFile
(
file
:
EmittedFile
)
:
string
Parameters
file
:
EmittedFile
Returns
string
error
error
(
e
:
string
|
RollupError
,
pos
?:
number
|
{
column
:
number
;
line
:
number
}
,
)
:
never
Parameters
e
:
string
|
RollupError
Optional
pos
:
number
|
{
column
:
number
;
line
:
number
}
Returns
never
get
Combined
Sourcemap
getCombinedSourcemap
()
:
SourceMap
Returns
SourceMap
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
fs
get
Module
Info
info
meta
plugin
Name
warn
Methods
add
Watch
File
emit
File
error
get
Combined
Sourcemap
get
File
Name
get
Module
Ids
load
parse
resolve
Github
KC's Workspace
Loading...