WatchHandle
Defined in: core/index.ts:1078
Methods
섹션 제목: “Methods”getBundleSourceMap()
섹션 제목: “getBundleSourceMap()”getBundleSourceMap():
string|null
Defined in: core/index.ts:1089
최신 rebuild 의 번들 전체 sourcemap JSON 을 lazy 생성해 반환 (Issue #1727 Phase B).
emit 단계에서 VLQ encode + sourcesContent 첨부를 건너뛰어 HMR latency 밖으로 빼낸
비용을 요청 시점으로 지연시킨다. dev server 가 /bundle.js.map 요청을 받을 때 호출.
- sourcemap 비활성 / 초기 빌드 전 /
stop()이후에는null. - Metro
_processSourceMapRequest패턴.
Returns
섹션 제목: “Returns”string | null
getHmrSourceMap()
섹션 제목: “getHmrSourceMap()”getHmrSourceMap(
moduleId):string|null
Defined in: core/index.ts:1096
최신 rebuild 의 모듈별 sourcemap JSON 을 lazy 생성해 반환.
dev server 가 /hmr-map/:moduleId 요청을 받을 때 호출.
moduleId 가 이번 rebuild 에 포함되지 않았으면 null.
Parameters
섹션 제목: “Parameters”moduleId
섹션 제목: “moduleId”string
Returns
섹션 제목: “Returns”string | null
stop()
섹션 제목: “stop()”stop():
void
Defined in: core/index.ts:1079
Returns
섹션 제목: “Returns”void