Cljsjs packages mostly contains external bundles that are prepended to cljs 
output. It is not processed by GCC nor dead code eliminated. You have to 
consume JS libraries directly as :npm-modules, then it should work. But I'm 
afraid that scoped npm modules like `@material-ui` do not work in cljs 
1.10, because GCC has open issue for scoped modules resolution. If you are 
good to go with latest 1.9, it should work.

On Sunday, September 2, 2018 at 2:29:47 AM UTC+2, 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