Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/symind/browser-sourcemap-spy

Analyze how browsers fetch source maps in real-time.
https://github.com/symind/browser-sourcemap-spy

Last synced: 26 days ago
JSON representation

Analyze how browsers fetch source maps in real-time.

Awesome Lists containing this project

README

        

# browser-sourcemap-spy

Analyze how browsers fetch source maps in real-time.

# The `SourceMap` or `X-SourceMap` HTTP Header

The SourceMap or X-SourceMap HTTP header is an integral response header that is primarily utilized in JavaScript (JS) files. Its main function is to create a linkage between the original source code and the resulting compiled code. Within a JS file, this connection is facilitated by the inclusion of a reference tag, such as `//# sourceMappingURL`, which points to the source map's location.

# Reason for Absence of Sourcemaps in Network Tab

As discussed in the Chromium bug tracker https://bugs.chromium.org/p/chromium/issues/detail?id=362913, sourcemaps are not considered standard page resources.

The intention behind the Network tab is to display resources that are a part of an ordinary page load, reflecting the actual network activity. Sourcemaps, while useful for debugging, do not fall under the category of typical resource loads as they're utilized primarily for development purposes.

In essence, this means there is no option within Chrome to force sourcemaps to appear in the Network tab due to their categorization outside the scope of normal web page resource loading events.