Re:CoffeeScript 1.6.0 released with support for source maps
by __david__ on Tuesday March 05, 2013 @12:54AM
(#5323151)
Does it somehow require running the code to generate the maps? I'm asking because when I add the "-m" to my coffee compile line I get:
The line in question calling _.indexOf() from the underscore library... It compiles just fine without the -m option.
[ Parent
| on HN ]
Re:CoffeeScript 1.6.0 released with support for source maps
by jashkenas on Tuesday March 05, 2013 @01:02AM
(#5323180)
No.
coffee --compile --map file.coffee
Should produce a "file.js" and a "file.map".
Re:CoffeeScript 1.6.0 released with support for source maps
by __david__ on Saturday March 09, 2013 @03:01PM
(#5349429)
Hmmm:
$ coffee --version
CoffeeScript version 1.6.1
$ coffee --compile static/test.coffee
$ coffee --compile --map static/test.coffee
TypeError: In static/test.coffee, Cannot call method 'indexOf' of undefined
at Object.count (~/.npm/lib/node_modules/coffee-script/lib/coffee-script/helpers.js:33:29)
at Object.compile (~/.npm/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:72:30)
at ~/.npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:171:33
at ~/.npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:141:18
at [object Object].<anonymous> (fs.js:123:5)
at [object Object].emit (events.js:64:17)
at Object.oncomplete (fs.js:1181:12)
(Paths were full path names, I replaced my $HOME with ~ in the output for clarity and some security through obscurity)