Source Maps is an actively used design pattern. 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.

?Years Old
  • Have a question about Source Maps not answered here? Email me and let me know how I can help.

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'
};

Last updated June 22nd, 2020

Edit Source Maps on GitHub