Sal
Peter Hoffmann Director Data Engineering at Blue Yonder. Python Developer, Conference Speaker, Mountaineer

CoffeeScript Source Maps

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

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][