[Maps] maps_legacy async bundle is loaded on startup #92664
Labels
bug
Fixes for quality problems that affect the customer experience
[Deprecated-Use Team:Presentation]Team:Geo
Former Team Label for Geo Team. Now use Team:Presentation
v7.13.0
v8.0.0
Kibana version: 7.12 BC2
Describe the bug: On loading any page of Kibana, the async bundle of the maps_legacy bundle is loaded right away. It should only be loaded if it's actually required. It seems like all of the building blocks are in place, but an oversight placed it into the setup routine of the plugin (due to an interaction between region_map and tile_map)
Steps to reproduce:
/bundles/plugin/mapsLegacy/mapsLegacy.chunk.1.js
being loadedExpected behavior:
This bundle shouldn't be loaded.
Any additional context:
Path how it gets loaded in the setup phase:
kibana/src/plugins/maps_legacy/public/plugin.ts
Line 56 in 4584a8b
kibana/src/plugins/maps_legacy/public/map/base_maps_visualization.js
Line 33 in 4584a8b
kibana/src/plugins/maps_legacy/public/map/base_maps_visualization.js
Line 92 in 4584a8b
kibana/src/plugins/maps_legacy/public/lazy_load_bundle/index.ts
Line 23 in 4584a8b
triggered by
kibana/src/plugins/region_map/public/plugin.ts
Line 97 in 3b3327d
The text was updated successfully, but these errors were encountered: