Skip to content

Commit

Permalink
When compiling node, toggle *main-cli-fn* last refs #355
Browse files Browse the repository at this point in the history
  • Loading branch information
ohpauleez authored and David Nolen committed Sep 29, 2012
1 parent ae466b2 commit d6f7d0b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/clj/cljs/closure.clj
Expand Up @@ -878,14 +878,13 @@
ana/*cljs-warn-on-undeclared*
(true? (opts :warnings))]
(let [compiled (-compile source all-opts)
compiled (concat
(if (coll? compiled) compiled [compiled])
(when (= :nodejs (:target all-opts))
[(-compile (io/resource "cljs/nodejscli.cljs") all-opts)]))
js-sources (if (coll? compiled)
(binding []
(apply add-dependencies all-opts compiled))
(add-dependencies all-opts compiled))
js-sources (concat js-sources
(when (= :nodejs (:target all-opts))
[(-compile (io/resource "cljs/nodejscli.cljs") all-opts)]))
optim (:optimizations all-opts)]
(if (and optim (not= optim :none))
(->> js-sources
Expand Down

0 comments on commit d6f7d0b

Please sign in to comment.