I guess it's because the js library wasn't written to be closure compatible.

Would I better better off installing Material UI as an npm module and then 
including those into clojurescript's build?  Would this provide 
treeshaking?  Of course I'd then have to reproduce the cljsjs integrations. 

On Saturday, September 1, 2018 at 7:29:47 PM UTC-5, Scott Klarenbach wrote:
>
> By adding this to my deps:
>
> [cljsjs/material-ui "1.4.0-0"]
> [cljsjs/material-ui-icons "1.1.0-1"]
>
> And this to my core.cljs file:
>
>  (:require [material-ui :as ui]
>               [material-ui-icons :as ic]
>
> my file size ballons from 92KB to 1.7MB
>
> running lein cljsbuild once min
>
> I'm not using any specific material icons yet, just requiring it.  I was 
> under the impression that much of that code would be eliminated by 
> tree-shaking.
>
> What gives? 
>

-- 
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.

Reply via email to