News for hackers. Stuff that matters.
Re:What is a Source Map by sillysaurus3 on Wednesday November 15, 2017 @12:04AM (#15701593)
A source map is the ability to say, for every character in a minified JS file, "Which source file did this character from? Which line and column?"

Note that there are a few types of source maps that vary in quality, so sometimes you don't get accurate column info. http://webcache.googleusercontent.com/search?q=cache:qYxqOqD...

The cool thing is, it's really easy to throw together a toy language with first-class debugging and tooling, thanks to sourcemaps. See coffeescript and lightscript for two ecosystems to emulate.

https://github.com/jashkenas/coffeescript/blob/master/src/so...

http://www.lightscript.org/

Re:What is a Source Map by sametmax on Wednesday November 15, 2017 @01:50AM (#15701923)
A source map is the reason your browser is so slow after you succeeded to debug your 4Mo webpack generated dev bunddle you spent 3 hours to configure right. And "your browser" is not plural because one config won't work with another browser.