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

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to