Relawan kami belum menerjemahkan artikel ini ke bahasa Bahasa Indonesia. Bergabunglah dan bantu kami menyelesaikannya!
Anda juga dapat membaca artikel ini dalam 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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
SourceMap
Non-standard
Chrome Full support Yes
Prefixed
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support Yes
Edge ? Firefox Full support 27
Prefixed
Full support 27
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support 55
IE ? Opera ? Safari Full support Yes
Prefixed
Full support Yes
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support Yes
WebView Android ? Chrome Android ? Edge Mobile ? Firefox Android Full support 27
Prefixed
Full support 27
Prefixed
Prefixed Implemented with the vendor prefix: X-
Full support 55
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.

See also

Tag Dokumen dan Kontributor

Kontributor untuk laman ini: mdnwebdocs-bot, fscholz
Terakhir diperbarui oleh: mdnwebdocs-bot,