Permalink
Browse files

When compiling node, toggle *main-cli-fn* last refs #355

  • Loading branch information...
1 parent ae466b2 commit d6f7d0b193de22378e06298fa543ca57d570c001 @ohpauleez ohpauleez committed with David Nolen Sep 29, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/clj/cljs/closure.clj
@@ -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

0 comments on commit d6f7d0b

Please sign in to comment.