-
Notifications
You must be signed in to change notification settings - Fork 12
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
Reduce bundle size #22
Comments
Unpacked Size of Icons Libraries
|
Hmm, strange that your bundle is quite different from mine. react-icons should have tree-shaking such that only the required icons are imported and not everything. Might want to take a look to see if there's any stray |
Did not find any stray with |
Yes, I re-run it and get the same as my first post. Might be leftovers from the previous builds? Can you try deleting the old dist and re-building? |
Removed the old |
Remove |
The bundle is more than 0.5MB - yikes!
G6 and the other Antv packages are more than 60%. I believe lodash is because of a graphin import: https://github.com/antvis/Graphin/blob/master/packages/graphin/src/controller/layout/dataChecker.ts#L2
The full G6 bundle is also due to how Graphin is importing the full G6 library instead of the necessary components.
Let's see if Graphin 2.0 reduces the bloat
The text was updated successfully, but these errors were encountered: