Thanks for the question; made me curious to check it out. The key is to save the compiler environment and to bind it to the dynamic variable before building.
Created a repo with short readme: https://github.com/shaunlebron/how-to-self-build-cljs On Friday, November 28, 2014 12:53:21 PM UTC-6, Brian Hurlow wrote: > lein-cljsbuild works really well for most of my cljs projects > > I've recently found a need to compile cljs directly from a clojure project > and I've noticed that calling something like: > > (use '[cljs.closure :only [build]]) > (build "cljs" {:optimizations :none :output-to "main.js"}) > > doesn't get close to the compilation speed of lein-cljsbuild. On my machine, > a simple build with no optimizations takes around 2 seconds. The same project > compiled with lein cljsbuild auto hovers around 0.02 seconds. > > I'd like to know: why is lein-cljsbuild so much faster? Is there an easy way > to integrate "custom" cljs compilation into my project that has the same > efficiency? > > Thanks ya'll, I really truly <3 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.
