WatchRebuildEvent
Defined in: core/index.ts:1394
Properties
섹션 제목: “Properties”bytes?
섹션 제목: “bytes?”
optionalbytes?:number
Defined in: core/index.ts:1417
changed?
섹션 제목: “changed?”
optionalchanged?:string[]
Defined in: core/index.ts:1404
error?
섹션 제목: “error?”
optionalerror?:string
Defined in: core/index.ts:1397
Single error tag from native @errorName(err) (catch path).
errors?
섹션 제목: “errors?”
optionalerrors?:object[]
Defined in: core/index.ts:1403
#3799 — Multiple error diagnostics from bundler (success-but-errors path). When the
bundler 자체가 throw 하지 않고 success-결과를 반환했지만 diagnostics 에 error severity
가 있는 경우 채워진다. error (single tag) 와 별개 — errors 가 있으면 우선 사용.
file
섹션 제목: “file”file:
string
message
섹션 제목: “message”message:
string
graphChanged?
섹션 제목: “graphChanged?”
optionalgraphChanged?:boolean
Defined in: core/index.ts:1405
lazySeeds?
섹션 제목: “lazySeeds?”
optionallazySeeds?:object[]
Defined in: core/index.ts:1532
D105 PR-C-1: lazy 빌드의 미파싱 seed 목록 { pathHash, path }
(WatchReadyEvent.lazySeeds 와 동일 shape/공식). lazyCompilation 이 켜진
watch 세션에서 매 rebuild 마다 노출 → dev 서버가 rebuild 중 새로 추가/제거된 동적
import seed 집합을 갱신할 수 있다 (onReady 한정이던 PR-B-1 의 rebuild 확장).
lazy 빌드가 아니거나 동적 import 가 없으면 생략(undefined).
path
섹션 제목: “path”path:
string
pathHash
섹션 제목: “pathHash”pathHash:
string
phaseDurations?
섹션 제목: “phaseDurations?”
optionalphaseDurations?:object
Defined in: core/index.ts:1434
Per-phase build time (milliseconds). Exposed only on a successful rebuild.
Base phases (always measured):
detect/graph/link/shake/emit/delta/totalField names exactly match their actual values. The pre-2026-04-22parse/semanticwere in fact legacy names that heldgraph/link+shakerespectively and have been removed — they are now exposed only as sub-phases (the real parser / SemanticAnalyzer times).
Sub-phases (when ZNTC_PROFILE=<cat> / BUNGAE_HMR_PROFILE=1 /
profile: ["<cat>"] is active):
scan/parse/resolve/semantic/transform/codegen/metadata- All 0 when inactive.
parseis now the real parser time,semanticthe real SemanticAnalyzer.
codegen
섹션 제목: “codegen”codegen:
number
Codegen total.
delta
섹션 제목: “delta”delta:
number
HMR delta extraction.
detect
섹션 제목: “detect”detect:
number
Change detection (mtime scan).
emit
섹션 제목: “emit”emit:
number
Code generation (transform + codegen + emit).
emitConcat
섹션 제목: “emitConcat”emitConcat:
number
Phase 3: module concat + runtime helpers summation + renderChunk + epilogue.
emitCss
섹션 제목: “emitCss”emitCss:
number
Per-CSS-entry bundling + lightningcss post-processing.
emitMetafile
섹션 제목: “emitMetafile”emitMetafile:
number
--metafile / --analyze JSON generation.
emitModulePass
섹션 제목: “emitModulePass”emitModulePass:
number
Phase 1/1.5/2/2.5 — used_names + cache lookup + emitModule + cache put
emitOutput
섹션 제목: “emitOutput”emitOutput:
number
emitter.emitWithTreeShaking / emitChunks — the bundle output generation body.
emitPolyfill
섹션 제목: “emitPolyfill”emitPolyfill:
number
Loading --polyfill file contents + Flow transpilation.
emitPrelude
섹션 제목: “emitPrelude”emitPrelude:
number
Format prologue + polyfill IIFE + runtime helper injection.
emitRefresh
섹션 제목: “emitRefresh”emitRefresh:
number
Assembling the React Refresh runtime preamble/epilogue (dev + browser).
emitSourcemapFinalize
섹션 제목: “emitSourcemapFinalize”emitSourcemapFinalize:
number
Source map V3 JSON generation (VLQ encode + sources content + debugId).
graph
섹션 제목: “graph”graph:
number
Module graph build — resolve + parse + semantic + finalize
graphBuild
섹션 제목: “graphBuild”graphBuild:
number
graph.build() / graph.buildIncremental() — the module graph construction body.
graphDiscover
섹션 제목: “graphDiscover”graphDiscover:
number
Phase 1: event queue BFS scan (module discovery + parsing + resolve).
graphFinalize
섹션 제목: “graphFinalize”graphFinalize:
number
Phase 2-4: DFS exec_index + ExportsKind promotion + TLA propagation.
graphWorker
섹션 제목: “graphWorker”graphWorker:
number
Separate build of the new Worker(new URL(...)) pattern entry.
link
섹션 제목: “link”link:
number
Scope hoisting + linker
linkBuildExportMap
섹션 제목: “linkBuildExportMap”linkBuildExportMap:
number
Link: per-module export map build.
linkComputeRenames
섹션 제목: “linkComputeRenames”linkComputeRenames:
number
Link: canonical_name 계산. lodash 측정에서 ~50ms — RFC #3940 의 RenameTable 도입 (Phase 2) 후 baseline 으로 활용.
linkPopulateImportSymbols
섹션 제목: “linkPopulateImportSymbols”linkPopulateImportSymbols:
number
Link: import symbol 채우기.
linkPopulateNamespaceAccesses
섹션 제목: “linkPopulateNamespaceAccesses”linkPopulateNamespaceAccesses:
number
Link: namespace access 채우기 (namespace import 사용처).
linkPopulateReExportAliases
섹션 제목: “linkPopulateReExportAliases”linkPopulateReExportAliases:
number
Link: re-export alias 채우기 (cross-module export name 매핑).
linkResolveImports
섹션 제목: “linkResolveImports”linkResolveImports:
number
Link: import resolution (binding cross-reference).
metadata
섹션 제목: “metadata”metadata:
number
Linker metadata build
parse
섹션 제목: “parse”parse:
number
Parser — real parser time only.
resolve
섹션 제목: “resolve”resolve:
number
Dependency resolution
scan
섹션 제목: “scan”scan:
number
Scanner tokenization
semantic
섹션 제목: “semantic”semantic:
number
SemanticAnalyzer — real semantic analysis time only.
shake
섹션 제목: “shake”shake:
number
Tree shaking
total
섹션 제목: “total”total:
number
Total rebuild time (sum of detect → delta).
transform
섹션 제목: “transform”transform:
number
Transformer total.
reparsedModules?
섹션 제목: “reparsedModules?”
optionalreparsedModules?:number
Defined in: core/index.ts:1524
Number of modules reparsed in the incremental graph. Counts cache-missed modules only. Not exposed for full builds.
success
섹션 제목: “success”success:
boolean
Defined in: core/index.ts:1395
updates?
섹션 제목: “updates?”
optionalupdates?:object[]
Defined in: core/index.ts:1406
code
섹션 제목: “code”code:
string
id:
string
map?
섹션 제목: “map?”
optionalmap?:string
Per-module standalone source map (V3 JSON). Populated when the sourcemap option is enabled. When the HMR client attaches it to the eval’d code as a sourceMappingURL data URL, debugger mapping is preserved without regenerating the whole bundle sourcemap (Issue #1248).