Error formatting macro: pagetree: java.lang.NullPointerException
Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Source map work has begun here: It promises a more complete and simpler solution to debugging ClojureScript directly in the browser.

This branch can encode and decode the VLQ64 format. It's based somewhat on the implementations presents in Closure Compiler itself as well as the Mozilla version in JavaScript

In this branch passing a :source-map compiler option will trigger the generation of the V3 source maps for the Closure compiled JavaScript. However this only maps the JavaScript generated by the ClojureScript compiler to the JavaScript produced by Closure. In order to be useful we need to read this source map and merge it contents with whatever information was produced by the ClojureScript compiling. This would allow mapping all the way from a line in advanced compiled JavaScript to a line in the original Clojure source. has a good introduction to HTML 5 source maps.