liveBook · Manning

Source map

A source map is a mapping artifact that relates locations in generated or transformed code to corresponding locations in its original source.

How 2 Manning books explain it

Web Components in Action

A source map is a mapping file that relates generated code locations to their original source-code locations.

How it is used
Supports debugging bundled components by relating runtime errors to original source files.
How deep it goes
Explains the mapping file and its lookup role, then demonstrates error localization without detailing the mapping format.
Examples
Uses a Rollup command with -m and a forced error displayed against the original source.
What you can do after
Diagnose/debug bundled applications by tracing generated-code errors back to original source lines.

Read how Web Components in Action explains source map →

Pro ASP.NET Core 7, Tenth Edition

A source map is a file that maps transformed code such as minified JavaScript back to its developer-readable source code.

How it is used
Helps debug minified client-side JavaScript without giving up its smaller delivery size.
How deep it goes
Defines the mapping file and describes automatic browser use, but does not explain how to generate one.
Examples
Contrasts myHelpfullyNamedFunction with its shortened minified name x1.
What you can do after
Diagnose/debug with it by opening F12 developer tools to inspect minified JavaScript with available source maps.

Read how Pro ASP.NET Core 7, Tenth Edition explains source map →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.