github.com/hoffmann Peter Hoffmann on Stackoverflow @peterhoffmann on twitter Peter Hoffmann on Facebook Contact me per email Subscribe to Atom Feed

Peter Hoffmann

Software Engineer
prev page next page

CoffeeScript Source Maps

The CoffeeScript Redux compiler now supports the genaration of Source Maps.

Posted on September 23, 2012
#coffeescript

This is a huge step forward for CoffeScript debugging. The CoffeeScript Redux compiler now supports the genaration of Source Maps

CoffeeScript Source Maps

Basically it's a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map which holds information about your original files. When you query a certain line and column number in your generated JavaScript you can do a lookup in the source map which returns the original location. Developer tools (currently WebKit nightly builds, or Google Chrome Canary) can parse the source map automatically and make it appear as though you're running unminified and uncombined files.html5rocks][