Skip to content

watch

This content is not available in your language yet.

watch(options): WatchHandle

Defined in: core/index.ts:2636

Watch 모드로 번들링한다. 파일 변경 시 incremental rebuild + HMR diff. 초기 빌드 완료 시 onReady, 리빌드 시 onRebuild 콜백 호출.

Plugin lifecycle 호출 순서: buildStart → (NAPI build/rebuild) → buildEnd → onReady/onRebuild → closeBundle. closeBundle 은 callback 이 없거나 throw 해도 호출된다.

BuildOptions

WatchHandle