Hacker News new | ask | show | jobs
by janimo 2799 days ago
In a fresh create-react-app project, their getting started example that includes only a button results in a minified js of 570K. Apparently the whole of Blueprint.js is included as a dependency. Shouldn't tree shaking take care of this seamlessly?
1 comments

Tree shaking isn't automatically supported for CSS. You can use third party tools like PurifyCSS though.
It's the js bundle that is large.