콘텐츠로 이동

RollupPlugin

Defined in: core/index.ts:3367

optional buildEnd?: 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.


optional buildStart?: 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.


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

Defined in: core/index.ts:3393

After output files are written. Rollup closeBundle-compatible.


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

Defined in: core/index.ts:3384


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

Defined in: core/index.ts:3377


name: string

Defined in: core/index.ts:3368


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

Defined in: core/index.ts:3381


optional resolveId?: 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.


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

Defined in: core/index.ts:3378