Skip to content

Commit 2b7017f

Browse files
committed
Merge branch 'master' of github.com:clojure/clojurescript
2 parents 49ed833 + 6c446bc commit 2b7017f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/clj/cljs/repl.clj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,12 @@
490490
(assoc opts
491491
:output-file
492492
(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)))
493499
;; need to load dependencies first
494500
(load-dependencies repl-env (:requires compiled) opts)
495501
;; make sure it's been analyzed, this is because if it's already compiled

0 commit comments

Comments
 (0)