Re:JavaScript Modularity Shaming
by swannodette on Thursday January 08, 2015 @08:23AM
(#8856228)
My experience so far is that writing code that defeats tree shaking is somewhat more difficult when adopting the simple functional style of the Closure Library base libs. Fortunately for ClojureScript, this style is already idiomatic.
On the other hand, the consistent dedication to writing tiny libraries in JavaScript ecosystem is not a bug. Tree-shaking compilers make it somewhat harder to tell where the bloat is coming from, and that encourages people writing libraries to get sloppy.