Skip to content

Commit

Permalink
CLJS-1298: source-on-disk conditional should include :source-url
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed Jan 5, 2016
1 parent f7e4c3c commit 17e167e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/clojure/cljs/closure.clj
Expand Up @@ -1579,7 +1579,9 @@
(write-javascript opts js)
;; always copy original ClojureScript sources to the output directory
;; when source maps enabled
(let [out-file (when-let [ns (and (:source-map opts) (first (:provides js)))]
(let [out-file (when-let [ns (and (:source-map opts)
(:source-url js)
(first (:provides js)))]
(io/file (io/file (util/output-directory opts))
(util/ns->relpath ns (util/ext (:source-url js)))))
source-url (:source-url js)]
Expand Down

0 comments on commit 17e167e

Please sign in to comment.