:preamble is really only intended to be paired with :whitespace, :simple, or :advanced optimizations. When using :none just link to a local copy of the React source or one from the Facebook CDN.
David On Wed, Apr 16, 2014 at 6:53 AM, Michael Sperber <[email protected]>wrote: > I'm new to ClojureScript, so please forgive me if I'm trying to do > to something stupid. > > I have this in project.clj: > > :cljsbuild > > { :builds [... > {:id "products" > :source-paths ["src" "examples/products"] > :compiler {:preamble ["react/react.min.js"] > :output-to "examples/products/main.js" > :output-dir "examples/products/out" > :source-map true > :optimizations :none}} ...} > > (The project - sans :preamble - is at > https://github.com/active-group/reacl, > another stab at React bindings for ClojureScript. > I'm trying to get it so I can work on a train.) > > Yet, React is not added to any compiler output. Any help would be much > appreciated! > > Cheers, > 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 http://groups.google.com/group/clojurescript. > -- 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 http://groups.google.com/group/clojurescript.
