Skip to content

WatchHandle

This content is not available in your language yet.

Defined in: core/index.ts:1078

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 패턴.

string | null


getHmrSourceMap(moduleId): string | null

Defined in: core/index.ts:1096

최신 rebuild 의 모듈별 sourcemap JSON 을 lazy 생성해 반환.

dev server 가 /hmr-map/:moduleId 요청을 받을 때 호출. moduleId 가 이번 rebuild 에 포함되지 않았으면 null.

string

string | null


stop(): void

Defined in: core/index.ts:1079

void