dan-lee / glamor-jss

Use glamor flavored CSS with jss under the hood…
https://glamor-jss.now.sh/
MIT License
22 stars 4 forks source link

Bundle size #59

Open kof opened 6 years ago

kof commented 6 years ago

Just opened bundlephobia, glamor-jss scores at https://bundlephobia.com/result?p=glamor-jss@1.4.1 20.3KB while

JSS https://bundlephobia.com/result?p=jss@9.8.7 scores 6.9KB and the preset https://bundlephobia.com/result?p=jss-preset-default@4.5.0 5.3 KB

JSS + preset = 12 KB

I think glamor-jss has high potential to become smaller if relevant parts are reduced. Also it might be smaller if tree shaking is applied, but that would require all dependencies in esm.

dan-lee commented 6 years ago

Thank you for reporting this, @kof!

That's indeed some significant size increase. I'll need to investigate why and what's going on there. I tried to switch to rollup sometime ago, which would help the tree shaking part, but it still suffered some major issues for me.