PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Source Maps

Source Maps

Source Maps are a language feature.

A specific type of Symbol Table. When debugging transpiled code, it is much easier to debug the original source. A source map is a file that maps from the transformed source to the original source.

Languages with Source Maps include JavaScript

Example from JavaScript:

{ version: 3, file: 'min.js', names: ['bar', 'baz', 'n'], sources: ['one.js', 'two.js'], sourceRoot: 'http://example.com/www/js/', mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' };

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub