We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49ed833 + 6c446bc commit 2b7017fCopy full SHA for 2b7017f
src/clj/cljs/repl.clj
@@ -490,6 +490,12 @@
490
(assoc opts
491
:output-file
492
(cljsc/src-file->target-file src)))]
493
+ ;; copy over the original source file if source maps enabled
494
+ (when-let [ns (and (:source-map opts) (first (:provides compiled)))]
495
+ (spit
496
+ (io/file (io/file (util/output-directory opts))
497
+ (util/ns->relpath ns))
498
+ (slurp src)))
499
;; need to load dependencies first
500
(load-dependencies repl-env (:requires compiled) opts)
501
;; make sure it's been analyzed, this is because if it's already compiled
0 commit comments