GitHub master
When using Rollup, which respects the "module" declaration in the latest package.json, other packages that use import L from 'leaflet'; (such as leaflet-virtual-grid) don't bundle because the leaflet-src.esm.js file doesn’t declare a default export.
Instead, other packages need to change to import * as L from 'leaflet'; or import specific symbols that they want.
I'm not sure if you want to preserve having import L from 'leaflet' work.
I just noticed this and wanted to raise it up.
Using http://leafletjs.com/edit.html or any other jsfiddle-like site.
I think the current way is acceptable, and preserving import L from 'leaflet' it is not really worth it at this point.
We need to make a note of this somehow, so devs are aware that import * as L from 'leaflet' is the advised way to impor Leaflet. Maybe something at https://github.com/Leaflet/Leaflet/blob/master/build/docs-misc.leafdoc ?
Most helpful comment
I think the current way is acceptable, and preserving
import L from 'leaflet'it is not really worth it at this point.We need to make a note of this somehow, so devs are aware that
import * as L from 'leaflet'is the advised way to impor Leaflet. Maybe something at https://github.com/Leaflet/Leaflet/blob/master/build/docs-misc.leafdoc ?