Skip to content

Commit

Permalink
Build deps before deps-macros
Browse files Browse the repository at this point in the history
This avoids the issue where tools.reader is producing
code that can't read "0", thus fixing #8
  • Loading branch information
mfikes committed Jul 7, 2015
1 parent 272d04c commit e21c59b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ClojureScript/replete/script/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
:source-map true
:static-fns true)]
(env/with-compiler-env (env/default-compiler-env opts)
(let [;; Generate core$macros
deps-macros (compile1 copts "cljs/core.cljc")
;; Compile main file
deps (compile1 copts file)]
(let [;; Compile main file
deps (compile1 copts file)
;; Generate core$macros
deps-macros (compile1 copts "cljs/core.cljc")]
;; output unoptimized code and the deps file
;; for all compiled namespaces
(apply closure/output-unoptimized
Expand Down

0 comments on commit e21c59b

Please sign in to comment.