bliss icon indicating copy to clipboard operation
bliss copied to clipboard

Map javascript ouput to template input

Open cstivers78 opened this issue 13 years ago • 1 comments

I really want this, but I do not really need it (yet).

To improve debugging abilities, I need to map the lines of compiled template (javascript) to the lines of the source file. So, when an error is thrown from within the template, it could contain the line number from where the error originates. Node/V8 is not helpful because it tells me it has no clue where the errors originate from.

So for now, I have to look at the compiled output of the template and figure it out... sometimes paste the output into a .js file and run it in node.

cstivers78 avatar Jan 13 '12 15:01 cstivers78

Yeah, very nice. Maybe you could provide an implementation that takes advantage from javascript source maps.

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

Best regards, André

andreventuravale avatar Apr 15 '13 16:04 andreventuravale