Skip to content

Commit c499b2a

Browse files
committed
CLJS-1349: cljs.build.api tests are broken due to cljs.util/to-target-file behavior
default to "cljs" extension if :source-file not provided
1 parent de8bc1c commit c499b2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/clojure/cljs/util.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
([target-dir ns-info]
8181
(to-target-file target-dir ns-info "js"))
8282
([target-dir {:keys [ns source-file] :as ns-info} ext]
83-
(let [src-ext (cljs.util/ext source-file)
83+
(let [src-ext (if source-file
84+
(cljs.util/ext source-file)
85+
"cljs")
8486
ns (if (or (= src-ext "clj")
8587
(and (= ns 'cljs.core) (= src-ext "cljc")))
8688
(symbol (str ns "$macros"))

0 commit comments

Comments
 (0)