build
This content is not available in your language yet.
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.
Parameters
섹션 제목: “Parameters”options
섹션 제목: “options”Returns
섹션 제목: “Returns”Promise<BuildResult>