Skip to content

Commit

Permalink
CLJS-675: QuickStart example not working properly
Browse files Browse the repository at this point in the history
Advanced compilation will fail if the output directory does not
exist. Make output directory before writing constants_table.js to
disk.

This error does not occur when compiling with lein-cljsbuild which
makes the output directory before calling build.
  • Loading branch information
kallstrom authored and swannodette committed Dec 31, 2014
1 parent 80d5d10 commit a9da41b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clj/cljs/compiler.clj
Expand Up @@ -1025,6 +1025,7 @@
(emits ";\n"))))

(defn emit-constants-table-to-file [table dest]
(io/make-parents dest)
(with-open [out ^java.io.Writer (io/make-writer dest {})]
(binding [*out* out]
(emit-constants-table table))))

0 comments on commit a9da41b

Please sign in to comment.