WatchHandle
Defined in: core/index.ts:1535
Methods
섹션 제목: “Methods”getBundleSourceMap()
섹션 제목: “getBundleSourceMap()”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.
nullwhen sourcemap is disabled / before the initial build / afterstop().- Metro
_processSourceMapRequestpattern.
Returns
섹션 제목: “Returns”string | null
getHmrSourceMap()
섹션 제목: “getHmrSourceMap()”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.
Parameters
섹션 제목: “Parameters”moduleId
섹션 제목: “moduleId”string
Returns
섹션 제목: “Returns”string | null
requestLazySeed()
섹션 제목: “requestLazySeed()”requestLazySeed(
path):void
Defined in: core/index.ts:1569
#4079 PR-2 — 요청된 lazy seed(동적 import 타겟)를 watch 그래프에서 force-parse 하도록
누적 등록한다. path 는 WatchReadyEvent.lazySeeds / WatchRebuildEvent.lazySeeds
의 정확한 절대경로여야 한다(번들러 해석 경로 — resolve() 로 재구성 금지).
호출 즉시 worker 가 다음 rebuild(파일 변경 없이도, ≤200ms 내)에서 그 seed 를 정식 파싱·
emit 하고 그 transitive 정적 deps 를 감시 대상에 포함시킨다(dev materialize — --lazy
라우트를 방문하면 그 안쪽 파일 편집도 HMR 동작). 중복/stop() 후 호출은 no-op.
lazyCompilation+splitting watch 세션에서만 의미 있다.
Parameters
섹션 제목: “Parameters”path
섹션 제목: “path”string
Returns
섹션 제목: “Returns”void
stop()
섹션 제목: “stop()”stop():
void
Defined in: core/index.ts:1536
Returns
섹션 제목: “Returns”void