anko / eslisp

un-opinionated S-expression syntax and macro system for JavaScript
ISC License
528 stars 31 forks source link

Source maps? #18

Closed anko closed 8 years ago

anko commented 8 years ago

Requested by @impinball and @Paraknight on separate occasions.

Source maps are supplementary info attached to JS code that lets debuggers point at what other-language file some piece of JavaScript was compiled from, so humans can find what to debug. More here.

Related to #9, as both require a way to track where in the input source an internal AST node came from.

avesus commented 8 years ago

:+1:

anko commented 8 years ago

While not absolutely perfect, the source maps as merged in 337a95a are pretty much correct.

Sample visualisation (using this tool made by Tobias Koppers):

flyby of a visualisation

:tada::balloon: