콘텐츠로 이동

WatchHandle

Defined in: core/index.ts:1535

getBundleSourceMap(): string | null

Defined in: core/index.ts:1549

Lazily generates and returns the full-bundle sourcemap JSON of the latest rebuild (Issue #1727 Phase B).

The emit step skips VLQ encoding + sourcesContent attachment, deferring that cost out of HMR latency until request time. Called when the dev server receives a /bundle.js.map request.

  • null when sourcemap is disabled / before the initial build / after stop().
  • Metro _processSourceMapRequest pattern.

string | null


getHmrSourceMap(moduleId): string | null

Defined in: core/index.ts:1557

Lazily generates and returns the per-module sourcemap JSON of the latest rebuild.

Called when the dev server receives a /hmr-map/:moduleId request. null if moduleId was not included in this rebuild.

string

string | null


requestLazySeed(path): void

Defined in: core/index.ts:1569

#4079 PR-2 — 요청된 lazy seed(동적 import 타겟)를 watch 그래프에서 force-parse 하도록 누적 등록한다. pathWatchReadyEvent.lazySeeds / WatchRebuildEvent.lazySeeds정확한 절대경로여야 한다(번들러 해석 경로 — resolve() 로 재구성 금지).

호출 즉시 worker 가 다음 rebuild(파일 변경 없이도, ≤200ms 내)에서 그 seed 를 정식 파싱· emit 하고 그 transitive 정적 deps 를 감시 대상에 포함시킨다(dev materialize — --lazy 라우트를 방문하면 그 안쪽 파일 편집도 HMR 동작). 중복/stop() 후 호출은 no-op.

lazyCompilation+splitting watch 세션에서만 의미 있다.

string

void


stop(): void

Defined in: core/index.ts:1536

void