News for hackers. Stuff that matters.
Re:Enabling HTTP/2 for Dropbox web services: experiences and... by jwr on Monday May 16, 2016 @02:16AM (#11704556)
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.

Re:Enabling HTTP/2 for Dropbox web services: experiences and... by mikegedelman on Monday May 16, 2016 @07:40AM (#11705653)
For 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.
Re:Enabling HTTP/2 for Dropbox web services: experiences and... by dragonne on Monday May 16, 2016 @11:29PM (#11711192)
Yes, 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.