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.
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/content/files/sidebars/httpsidebar.yaml)
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 format specification # sec-linking-http-header |