CoffeeScriptRedux icon indicating copy to clipboard operation
CoffeeScriptRedux copied to clipboard

JS nodes produced by compile() should have `source` in their `loc`

Open RReverser opened this issue 11 years ago • 1 comments

JavaScript AST nodes produced by CoffeeScript.compile(csAST, options) should contain inputSource value in loc.source according to Mozilla Parser API spec so it would be safe to pass such AST to further transformers without breaking linkage to original files (which needs to be preserved for source map generation on final step).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2404867-js-nodes-produced-by-compile-should-have-source-in-their-loc?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).

RReverser avatar May 29 '14 18:05 RReverser

@michaelficarra Could you please have a look at this? Seems to be trivial thing to add, but I can't compile CoffeeScriptRedux on Windows machine :(

RReverser avatar Jul 31 '14 16:07 RReverser