Наші добровольці ще не переклали статтю цією мовою: Українська. Долучайтеся й допоможіть це зробити!
Ви також можете прочитати цю статтю іншою мовою: English (US).
The SourceMap
HTTP response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
Header type | Response header |
---|---|
Forbidden header name | no |
Syntax
SourceMap: <url> X-SourceMap: <url> (deprecated)
Directives
<url>
- A relative (to the request URL) or absolute URL pointing to a source map file.
Examples
SourceMap: /path/to/file.js.map
Specifications
Specification | Title |
---|---|
Draft document | Source Map Revision 3 Proposal |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic support | Chrome
Full support
Yes
| Edge ? | Firefox
Full support
27
| IE ? | Opera ? | Safari
Full support
Yes
| WebView Android ? | Chrome Android ? | Edge Mobile ? | Firefox Android
Full support
27
| Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
- Non-standard. Expect poor cross-browser support.
- Non-standard. Expect poor cross-browser support.
- Requires a vendor prefix or different name for use.
- Requires a vendor prefix or different name for use.