I'm trying to properly deal with dependencies on a cljsjs package
(React, in this case).  So I have this in project.clj:


  :dependencies [[org.clojure/clojure "1.7.0"]
                 [org.clojure/clojurescript "1.7.228" :scope "provided"]
                 [cljsjs/react-with-addons "0.13.3-0"]] ; addons needed for 
tests only

  :cljsbuild
  
  { :builds [;; these need phantom or something like it
             {:id "test-dom"
              :source-paths ["src" "test-dom"]
              :compiler {:output-to "target/test-dom.js"
                         :main reacl.test.runner
                         :optimizations :none}}
    ...

The full glory is here, if you're interested:

https://github.com/active-group/reacl/blob/master/project.clj

Now, as soon as change :optimizations to :whitespace, I get a

goog.require("cljsjs.react")

somewhere in the output, without a corresponding require.  (FWIW, this
goes away when I elide the :main clause.)

Can anyone shed light on what's happening here, and what I'm doing
wrong?  Help would be much appreciated!

-- 
Regards,
Mike

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to