I was also unable to run advanced compilation mode in V8. I suspect that it's due to issues inside goog module system. Simple mode seems to be broken, only whitespace works.
On Sunday, February 8, 2015 at 10:35:50 PM UTC+1, [email protected] wrote: > Hi everyone, > > I should've tacked my post from earlier today on to this thread, but I only > saw it now. I'm really interested in this topic b/c I have projects that are > best implemented as SPA's but require static HTML be produced for some > endpoints as well. > > Anyway, from trying to implement a server-rendered Reagent app recently > (https://gist.github.com/pandeiro/c5d2728bd04aab4f31c3), I can comment on a > few of the issues mentioned here. > > First, stubbing is definitely necessary for Nashorn, though it is minimal. > See here: > https://github.com/pandeiro/agua/blob/master/src/agua/core.clj#L35-L36 -- as > far as I can tell, this is all that's needed to deal with the global > environment, environment-sniffing conditionals and routing, which appear to > me to be the major concerns for this type of app. > > Re: optimizations, I could not get my example to work with :advanced and I > did not even try with :none, as I don't think Nashorn will work with manually > retrieving Google Closure namespaces. As for :advanced, I did not try to > debug why it wasn't working. So for now, I used :simple. (My example uses > ring-gzip middleware and its total payload is in the 120kb range.) > > Dylan and Max -- have you made any more attempts or progress with this in the > last couple months? > > Cheers, M -- 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.
