RollupPlugin
Defined in: core/index.ts:3367
Properties
섹션 제목: “Properties”buildEnd?
섹션 제목: “buildEnd?”
optionalbuildEnd?:Hook<(this,error?) =>MaybePromise<void>>
Defined in: core/index.ts:3391
Once at bundle end. Rollup buildEnd-compatible — if there is an error, the build fails.
buildStart?
섹션 제목: “buildStart?”
optionalbuildStart?:Hook<(this) =>MaybePromise<void>>
Defined in: core/index.ts:3389
Once at bundle start. esbuild onStart / Rollup buildStart-compatible
(#2156). ZNTC calls it with no arguments (esbuild style) — if a Rollup
plugin expects the options argument, capture it in the plugin’s own
closure.
closeBundle?
섹션 제목: “closeBundle?”
optionalcloseBundle?:Hook<(this) =>MaybePromise<void>>
Defined in: core/index.ts:3393
After output files are written. Rollup closeBundle-compatible.
generateBundle?
섹션 제목: “generateBundle?”
optionalgenerateBundle?:Hook<(this,outputs) =>MaybePromise<void>>
Defined in: core/index.ts:3384
load?
섹션 제목: “load?”
optionalload?:Hook<(this,id) =>MaybePromise<LoadResult>>
Defined in: core/index.ts:3377
name
섹션 제목: “name”name:
string
Defined in: core/index.ts:3368
renderChunk?
섹션 제목: “renderChunk?”
optionalrenderChunk?:Hook<(this,code,chunk) =>MaybePromise<RenderChunkResult>>
Defined in: core/index.ts:3381
resolveId?
섹션 제목: “resolveId?”
optionalresolveId?:Hook<(this,source,importer?) =>MaybePromise<ResolveIdResult>>
Defined in: core/index.ts:3370
Rollup resolveId. Both a function and a vite 4+ new-style hook object { filter, handler } are allowed.
transform?
섹션 제목: “transform?”
optionaltransform?:Hook<(this,code,id) =>MaybePromise<TransformResult>>
Defined in: core/index.ts:3378