I'm using Vue-cli 2 and import Vue2-leaflet modules LMap
, LTileLayer
in my main.js with
import { LMap, LTileLayer } from 'vue2-leaflet'
By using webpack-bundle-analyzer I can see the bundle size is still 421kb (leaflet-src.js only).
Why is this not decreased significantly, as the docs state;
Is highly suggested to import only the needed modules by doing so:
import { LMap, LTileLayer, LMarker } from 'vue2-leaflet';
This will reduce the size of the bundle significantly