Interface: FunctionPluginHooks
Defined in: plugin/index.ts:106
Properties
augmentChunkHash()
- Type: augmentChunkHash: (
this,chunk) =>string|void
Defined in: plugin/index.ts:184
Parameters
this
chunk
Returns
string | void
buildEnd()
- Type: buildEnd: (
this,err?) =>void
Defined in: plugin/index.ts:160
Parameters
this
err?
Error
Returns
void
buildStart()
- Type: buildStart: (
this,options) =>void
Defined in: plugin/index.ts:126
Parameters
this
options
Returns
void
closeBundle()
- Type: closeBundle: (
this,error?) =>void
Defined in: plugin/index.ts:204
Parameters
this
error?
Error
Returns
void
closeWatcher()
- Type: closeWatcher: (
this) =>void
Defined in: plugin/index.ts:213
Parameters
this
Returns
void
generateBundle()
- Type: generateBundle: (
this,outputOptions,bundle,isWrite) =>void
Defined in: plugin/index.ts:191
Parameters
this
outputOptions
bundle
isWrite
boolean
Returns
void
load()
- Type: load: (
this,id) =>MaybePromise<LoadResult>
Defined in: plugin/index.ts:145
Parameters
this
id
string
Returns
MaybePromise<LoadResult>
moduleParsed()
- Type: moduleParsed: (
this,moduleInfo) =>void
Defined in: plugin/index.ts:158
Parameters
this
moduleInfo
Returns
void
onLog()
- Type: onLog: (
this,level,log) =>boolean|NullValue
Defined in: plugin/index.ts:107
Parameters
this
level
"info" | "debug" | "warn"
log
Returns
boolean | NullValue
options()
- Type: options: (
this,options) =>NullValue|InputOptions
Defined in: plugin/index.ts:113
Parameters
this
options
Returns
NullValue | InputOptions
outputOptions()
- Type: outputOptions: (
this,options) =>NullValue|OutputOptions
Defined in: plugin/index.ts:119
Parameters
this
options
Returns
NullValue | OutputOptions
renderChunk()
- Type: renderChunk: (
this,code,chunk,outputOptions,meta) =>string|NullValue| {code:string;map?: SourceMapInput | undefined; }
Defined in: plugin/index.ts:170
Parameters
this
code
string
chunk
outputOptions
meta
RenderedChunkMeta
Returns
string | NullValue | { code: string; map?: SourceMapInput | undefined; }
renderError()
- Type: renderError: (
this,error) =>void
Defined in: plugin/index.ts:189
Parameters
this
error
Error
Returns
void
renderStart()
- Type: renderStart: (
this,outputOptions,inputOptions) =>void
Defined in: plugin/index.ts:164
Parameters
this
outputOptions
inputOptions
Returns
void
resolveDynamicImport()
- Type: resolveDynamicImport: (
this,source,importer) =>ResolveIdResult
Defined in: plugin/index.ts:139
Parameters
this
source
string
importer
string | undefined
Returns
Deprecated
This hook is only for rollup plugin compatibility. Please use resolveId instead.
resolveId()
- Type: resolveId: (
this,source,importer,extraOptions) =>ResolveIdResult
Defined in: plugin/index.ts:128
Parameters
this
source
string
importer
string | undefined
extraOptions
Returns
transform()
- Type: transform: (
this,code,id,meta) =>TransformResult
Defined in: plugin/index.ts:147
Parameters
this
code
string
id
string
meta
BindingTransformHookExtraArgs & object
Returns
watchChange()
- Type: watchChange: (
this,id,event) =>void
Defined in: plugin/index.ts:207
Parameters
this
id
string
event
event
ChangeEvent
Returns
void
writeBundle()
- Type: writeBundle: (
this,outputOptions,bundle) =>void
Defined in: plugin/index.ts:198
Parameters
this
outputOptions
bundle
Returns
void