Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d6f7d0b193de22378e06298fa543ca57d570c001 1 parent ae466b2
@ohpauleez ohpauleez authored David Nolen committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/clj/cljs/closure.clj
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.