What about the --output_wrapper part? My clojurescript js never calls the minified foreign library directly: What I have is [1] some plain non-optimized javascript that calls [2] CodeMirror for the code and position, then calls [3] my clojurescript js to find out how to do the requested paredit thing, and then calls [2] CodeMirror again to do it.
So [3] never calls [2] [2] and [3] export stuff so that [1] can call them. And my problem is that [2] isn't wrapped in an anonymous function. How do I get cljsbuild to tell Closure to use --output_wrapper? (Also, I guess there's a good reason why it doesn't always wrap its output?) On Friday, October 5, 2012 2:39:34 PM UTC-4, David Nolen wrote: > > By the way, I'm not sure compiling CodeMirror and my stuff in one go is >> the right approach, because I don't know whether CodeMirror is compatible >> with Google Closure's advanced compilation. (I see that CodeMirror 1's >> compression page had Google Closure advanced optimization as an option but >> it disappeared for CodeMirror 2.) I think doing so would require me to >> hand-edit CodeMirror to add a goog.provide call. >> > > You don't need to do that. That's what the :foreign-libs option is for > which is described at the end of blog post. > > David > -- 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