I understand it is important since only a small portion of the relatively large closure code base is used in any given app... but isn't this part of what the uglify plugin and/or webpack-closure-compiler does? Are you saying that dead code elimination will not work as well after the code has been commonjs-ified? Perhaps it will still work well enough?
On Sun, Jul 9, 2017 at 1:34 PM Dustin Getz <dustin.g...@gmail.com> wrote: > Closure is also doing dead code elimination which is only possible if you > code in a restricted dialect of javascript, which cljs compiler does emit. > Dead code elimination is important because, for example, the standard > library and data structures are not implemented naively and bundled with > the js vm, the standard lib has to be shipped on the wire and parsed. > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to a topic in the > Google Groups "ClojureScript" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojurescript/AGXku7Ous0Y/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at https://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.