watch
This content is not available in your language yet.
watch(
options):WatchHandle
Defined in: core/index.ts:3694
Bundles in watch mode. On file changes: incremental rebuild + HMR diff. Calls the onReady callback when the initial build completes, and onRebuild on each rebuild.
Plugin lifecycle call order: buildStart → (NAPI build/rebuild) → buildEnd → onReady/onRebuild → closeBundle. closeBundle is called even if there is no callback or it throws.