-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] lazy load maps_legacy, tile_map, and region_map bundle #78027
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
@elasticmachine merge upstream |
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.
code review, tested.
really impressive improvement 🧨
Just one suggestion. Don't feel strongly, but might improve readability and help users distinguish between "modules" and instance-vars.
I have remove _leaflet and _serviceSettings from BaseMapsVisualization |
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
distributable file count
History
To update your PR or re-run it, just comment with: |
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.
🎉
…c#78027) * [Maps] lazy load maps_legacy bundle * tslint * lazy load leaflet * try to get lodash out of maps_legacy bundle and work on tile_map bundle * lazy load service settings * lazy load region_map and fix vega unit tests * tslint fixes * remove lodash from region_map bundle * review feedback * remove unused file Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
#78480) * [Maps] lazy load maps_legacy bundle * tslint * lazy load leaflet * try to get lodash out of maps_legacy bundle and work on tile_map bundle * lazy load service settings * lazy load region_map and fix vega unit tests * tslint fixes * remove lodash from region_map bundle * review feedback * remove unused file Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Part of #78022
This PR creates a lazy load bundle for maps_legacy, region_map, and tile_map to reduce plugin size.