:source-map

compiler optionsince v0.0-1798Edit

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`

Details:

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.


See Also: