콘텐츠로 이동

RollupPlugin

Defined in: core/index.ts:3325

optional buildEnd?: Hook<(this, error?) => MaybePromise<void>>

Defined in: core/index.ts:3349

Once at bundle end. Rollup buildEnd-compatible — if there is an error, the build fails.


optional buildStart?: Hook<(this) => MaybePromise<void>>

Defined in: core/index.ts:3347

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.


optional closeBundle?: Hook<(this) => MaybePromise<void>>

Defined in: core/index.ts:3351

After output files are written. Rollup closeBundle-compatible.


optional generateBundle?: Hook<(this, outputs) => MaybePromise<void>>

Defined in: core/index.ts:3342


optional load?: Hook<(this, id) => MaybePromise<LoadResult>>

Defined in: core/index.ts:3335


name: string

Defined in: core/index.ts:3326


optional renderChunk?: Hook<(this, code, chunk) => MaybePromise<RenderChunkResult>>

Defined in: core/index.ts:3339


optional resolveId?: Hook<(this, source, importer?) => MaybePromise<ResolveIdResult>>

Defined in: core/index.ts:3328

Rollup resolveId. Both a function and a vite 4+ new-style hook object { filter, handler } are allowed.


optional transform?: Hook<(this, code, id) => MaybePromise<TransformResult>>

Defined in: core/index.ts:3336