I haven't used clojurescript in a while, but if I recall correctly, the only way to not compile everything into a single file is to leave out the :optimization flag completely. If this is the case this should probably be considered a bug. I might be wrong though.
Jonathan On Tue, May 7, 2013 at 5:49 PM, David Nolen <dnolen.li...@gmail.com> wrote: > I believe the ClojureScript compiler simply looks for all .cljs files on > the specified compile path. I think maybe you could put your files in > different directories so they don't all get concatenated together. You can > one build specify one path, and another build specify both paths. > > Perhaps other people have better solutions? > > > On Tue, May 7, 2013 at 11:26 AM, Timothy Washington <twash...@gmail.com>wrote: > >> This is on a Clojurescript compilation note. I've noticed that if I have >> a *main.cljs* and *my-other.cljs*, parts of *my-other.cljs* will appear >> in *main.cljs*. Is there a way to avoid this? Using *lein-cljsbuild*, >> any of the :optimization flags, gives the same result (in terms of adding >> all to *main.cljs*). I'd like main.cljs to just be a bootstrap file, and >> separately include my other files. Then at production time, I can choose >> flip a switch to have all the files compiled down to one >> compressed main.cljs. >> >> Can I do this? >> >> >> Thanks >> Tim >> >> -- >> -- >> 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/groups/opt_out. >> >> >> > > -- > -- > 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/groups/opt_out. > > > -- -- 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/groups/opt_out.