📜 ⬆️ ⬇️

CoffeeScript 1.6.1 released with Source Maps support

It happened what we have been waiting for a long time. Thanks to the efforts of Jason Walton, CoffeeScript now supports Source Maps , and we can debug CoffeeScript code directly in the browser (Chrome, Firefox Nightly, Webkit Nightly). Now there is almost no reason not to use this magnificent language in their web projects.

Debugging with this innovation looks like this (breakpoints are supported, you can watch variables, stack, etc.):


To create Source Maps, you just need to add the --map key when compiling. A .map file will appear next to the compiled .js file, which will be used by the browser to match the source code.

You can even minify the resulting JavaScript using UglifyJS2 and, using the --in-source-maps option, get full debugging of the original CoffeeScript code. Magic!
')
When used in the browser through , , , .

Source Maps -, Javascript Source Maps .

, :
1.5.0 . , ) .coffee.md "" CoffeeScript, .litcoffee (.
). .
PS , " " . , .
, , , .

Source Maps -, Javascript Source Maps
.

, :
1.5.0 . , ) .coffee.md "" CoffeeScript, .litcoffee (. ). .
PS , " " . , .
, , , .

Source Maps -, Javascript Source Maps
.

, :
1.5.0 . , ) .coffee.md "" CoffeeScript, .litcoffee (. ). .
PS , " " . , .

Source: https://habr.com/ru/post/171649/


All Articles