-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
perf: Implement Echarts treeshaking #29874
Conversation
27b1036
to
03cb2c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nice work, improvements on many levels here! One final thing that comes to mind is maybe adding a linting rule to block direct imports of echarts
. Other than that LGTM!
KAMIL IS ON FIRE!!! 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 |
Good idea! Let me do that in a separate PR 🙂 |
(cherry picked from commit c220245)
(cherry picked from commit c220245)
SUMMARY
Use Echarts tree shaking API to shrink the library's bundle size.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
All Echarts and all features (like legends, data zoom etc) should work as before.
ADDITIONAL INFORMATION