ClojureScript

Compiler should emit optional source maps

Details

  • Type: Enhancement Enhancement
  • Status: In Progress In Progress
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

== New Notes ==

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

Source map support will be landing in Chrome in 6 weeks.

== Old Notes ==

Google's debugging tooling consists of at least these two big pieces:

  • The `--create_source_map` compiler flag, which generates a table mapping source JS to compiled JS
  • The [Closure Inspector](http://code.google.com/closure/compiler/docs/inspector.html), a Firefox plugin that uses the source maps to provide error messages pointing to original code instead of compiled code

Open Questions

  • What does integrating with Closure Inspector look like?
  • Can we use code from gclosure to generate our own cljs ��� compiled JS mappings?
  • Would we need to modify Closure Inspector?

Imported from github issue #31

Activity

Hide
David Nolen added a comment - - edited
Show
David Nolen added a comment - - edited There's a patch for Clojure, here CLJ-960 Related, https://github.com/brandonbloom/clojurescript/compare/clojure:master...brandonbloom:track-pos
Hide
David Nolen added a comment -

Related ticket (tracking line & col during emission) that was resolved - http://dev.clojure.org/jira/browse/CLJS-176

Show
David Nolen added a comment - Related ticket (tracking line & col during emission) that was resolved - http://dev.clojure.org/jira/browse/CLJS-176
Hide
Chouser added a comment -

Later

Show
Chouser added a comment - Later

People

Vote (4)
Watch (4)

Dates

  • Created:
    Updated: