콘텐츠로 이동

build

build(options): Promise<BuildResult>

Defined in: core/index.ts:2874

Runs bundling asynchronously. Does not block the event loop. Promise/async hooks of JS plugins are supported in this function.

Plugin lifecycle call order: buildStart → (NAPI build) → buildEnd → write → closeBundle. buildEnd is called even on NAPI failure, with the error argument passed (same as Rollup). closeBundle is called only on a successful write.

BuildOptions

Promise<BuildResult>