compiler option | since v0.0-1798 | Edit |
To help debugging at runtime, creates a standard source map JSON file used by Node
and browsers to map compiled JS lines to their original CLJS files.
Use a string path if there is a single output file expected, otherwise use true
to auto-assign source map filenames.
:source-map "out/main.js.map"
:source-map true ;; <-- use if `:optimizations :none`, or any `:modules`
Multiple files are expected when :optimizations
is none,
or if :modules
are specified.
See ClojureScript Source Maps for details.
See Source Map Revision 3 Proposal for details on the output JSON format.