0

I am just getting started with ClojureScript, and I would like to mix and match completely unrelated ClojureScript applications on different pages at runtime. I understand leinigen compilation is designed to squeeze all code needed for on app in one JavaScript file. To keep things separated, I would like to have the Closure library separated from the application - even if that prevents some of the optimizations.

Is it possible to compile ClojureScript excluding the Closure library from the final JavaScript artifact?

Andreas Steffan
  • 6,039
  • 2
  • 23
  • 25

1 Answers1

0

No. You can use closure-library in an uncompiled state, but you cannot directly exclude it without resorting to creating a new library which exports all of your methods.

For related answers, see:

Community
  • 1
  • 1
Chad Killingsworth
  • 14,360
  • 2
  • 34
  • 57
  • Well in fact it looks like this could generally be done using closure library modules, but it seems the ClojureScript compiler does not support it yet. – Andreas Steffan Feb 17 '15 at 09:55