-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Three shaking for blueprint v2. #2387
Comments
@johnunclesam yes, tree shaking is how you remove dead code: |
Not just for the icons, right? PR also for all the core components? Or still all 100 KB for just one single component? |
@giladgray just for the icons or for single component also? |
@johnunclesam other components should already support tree shaking, see #2042. you must enable it in your build, though. and update all deps to versions that (hopefully) support it. it doesn't come for free. |
Dear @giladgray you said me to go here: #2042, but what I don't understand is how to use just one single component (maybe also using Is this possible today? |
@johnunclesam |
Bug report
Steps to reproduce
Just
import { Icon } from "@blueprintjs/core";
in my react app and I got this:
Why all this components from Blueprint?
I can understand icons (and something is happening: #2356), but not all that components which I don't need...
107.46 KB useless...
How to remove that code from my project ? Three-shaking?
The text was updated successfully, but these errors were encountered: