Skip to content

Commit

Permalink
fix cljs.closure/output-one-file bug pointed out by Jonas Enlund
Browse files Browse the repository at this point in the history
  • Loading branch information
dnolen committed Apr 10, 2015
1 parent f9a1f5d commit ff9c3d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clj/cljs/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,9 @@
(nil? output-to) js

(string? output-to)
(do
(util/mkdirs output-to)
(spit output-to js))
(let [f (io/file output-to)]
(util/mkdirs f)
(spit f js))

:else (println js)))

Expand Down

0 comments on commit ff9c3d1

Please sign in to comment.