3 ms·
It depends what you mean by "bundling". For ClojureScript, the output is passed through the Google Closure compiler with advanced optimizations. The result is n
by jwr 10y ago
It depends what you mean by "bundling". For ClojureScript, the output is passed through the Google Closure compiler with advanced optimizations. The result is not a concatenation nor just a minimization -- it is a rewritten program, containing just the parts that are needed and significantly optimized.
So, the big resulting file is not a "bundle" and can't easily be split into parts.
- mikegedelman 10y agoFor a large application, I wonder if you could configure Closure to output multiple files.. Maybe libraries and such in one file and client code in another? I would imagine you could at least split the code there.
- dragonne 10y agoYes, Closure Compiler can be made to generate multiple files in this way. IIRC you can give it multiple entrypoints and it will generate files with the code unique to each entrypoint, plus one with the shared code.