SourceMap

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

SourceMap HTTP 응답 헤더는 생성된 코드를 소스맵에 연결해서, 브라우저가 원본 소스를 재구성하여 디버거에서 재구성된 원본을 표시할 수 있도록 합니다.

Header type Response header
Forbidden header name no

문법

http
SourceMap: <url>
X-SourceMap: <url> (deprecated)

지시자

<url>

소스 맵 파일을 가리키는 상대적인 URL(요청한 URL 기준) 또는 절대 URL입니다.

예제

http
SourceMap: /path/to/file.js.map

명세

Specification
Source Map specification
# linking-generated-code

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
SourceMap

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
See implementation notes.
Requires a vendor prefix or different name for use.
Has more compatibility info.

같이 보기