This is not a ClojureScript question anymore. Someone else can describe the nitty gritty Lein + cljsbuild details.
David On Fri, Mar 27, 2015 at 2:33 PM, <[email protected]> wrote: > Thanks for taking the time to diagnose and explain. I'm glad it wasn't a > boneheaded user mistake. > > So you are saying I can compile different parts of the classpath under > different optimization settings, by stacking profiles, I assume? > > On Fri, Mar 27, 2015 at 12:23 PM David Nolen <[email protected]> > wrote: > >> First off thank you for putting examples like this together which don't >> involve any tooling other than ClojureScript itself. This saves me a >> countless amount of time by eliminating other variables. >> >> Both cases exhibit a subtle kind of user error - you are trying to load >> the browser REPL in a mode other than :none. This isn't supported, the >> browser REPL relies fundamentally on loading code dynamically which is not >> supported in any way whatsoever under any optimization setting other than >> :none. >> >> The way to avoid this in the future will be :main support under higher >> :optimizations settings than :none. Won't make it into the next release but >> no later than the one after that. Until then use the classpath (via >> :source-paths when using cljsbuild) to configure your dev builds to include >> code (REPL stuff) you don't want under :simple or :advanced. >> >> David >> >> On Fri, Mar 27, 2015 at 11:44 AM, Jonathon McKitrick < >> [email protected]> wrote: >> >>> I've run across two optimization related issues I cannot get past. I >>> followed the advice in 'reporting issues' on the ClojureScript wiki, and >>> I've created 2 simple repos demonstrating the issues. These could be user >>> error, but I've tried to remove anything clouding the issue. >>> >>> I thought it was a simple externs issue, but I removed jQuery references >>> from this demo, and the error remains. >>> >>> https://github.com/j-mckitrick/cljs-error-demo-1 >>> https://github.com/j-mckitrick/cljs-error-demo-2 >>> >>> Each repo has a README with steps to reproduce. Any help greatly >>> appreciated. >>> >> >>> -- >>> 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 a topic in the >> Google Groups "ClojureScript" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/clojurescript/UPBYggXCcGs/unsubscribe. >> To unsubscribe from this group and all its topics, 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. > -- 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.
