Skip to content

Commit 4b80a31

Browse files
committed
CLJS-1108: :modules :output-to needs to create directories
1 parent 2bfe320 commit 4b80a31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/clj/cljs/closure.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,10 @@ should contain the source for the given namespace name."
10321032
(let [fdeps-str (when-not (empty? foreign-deps)
10331033
(foreign-deps-str opts foreign-deps))
10341034
sm-name (when (:source-map opts)
1035-
(str output-to ".map"))]
1036-
(spit (io/file output-to)
1035+
(str output-to ".map"))
1036+
out-file (io/file output-to)]
1037+
(util/mkdirs out-file)
1038+
(spit out-file
10371039
(as-> source source
10381040
(if (= name :cljs-base)
10391041
(add-header opts source)

0 commit comments

Comments
 (0)