Skip to content

Commit

Permalink
Add the nodejs dependency by hand to enforce providing it [cljs-395]
Browse files Browse the repository at this point in the history
Force nodejs into the dependencies check; leave nodejscli tacked on to the end [cljs-395]
  • Loading branch information
ohpauleez authored and David Nolen committed Oct 23, 2012
1 parent a6fa901 commit e83204a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/cljs/closure.clj
Expand Up @@ -885,7 +885,9 @@
(let [compiled (-compile source all-opts)
js-sources (concat
(apply add-dependencies all-opts
(if (coll? compiled) compiled [compiled]))
(concat (if (coll? compiled) compiled [compiled])
(when (= :nodejs (:target all-opts))
[(-compile (io/resource "cljs/nodejs.cljs") all-opts)])))
(when (= :nodejs (:target all-opts))
[(-compile (io/resource "cljs/nodejscli.cljs") all-opts)]))
optim (:optimizations all-opts)]
Expand Down

0 comments on commit e83204a

Please sign in to comment.