Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoffeeScript source maps for nodeJS development

Now that CoffeeScript supports the new Source Map hotness, I was wondering if I can also use the source maps not just in my browser, but on the command line while developing my nodeJS apps.

I want the JS compiler to give me more useful error traces where the lines actually match with my coffeescript files instead of compiled JS files.

like image 655
Sebastian Hoitz Avatar asked Mar 08 '13 10:03

Sebastian Hoitz


1 Answers

The source-map-support module does this, just install the module and put this at the top of your code:

require('source-map-support').install()
like image 188
constexpr Avatar answered Sep 27 '22 20:09

constexpr