leaflet-locatecontrol icon indicating copy to clipboard operation
leaflet-locatecontrol copied to clipboard

ES module support?

Open DavidMStraub opened this issue 3 years ago • 1 comments

Hi, thanks for this great plugin. I was wondering if you plan to provide an ES module version of it. The release announcements of Leaflet 1.9.0 advocate the use of ES modules and it is planned to even remove the L global in the future. It would be great if I could just do

import leaflet
import leaflet.locatecontrol

in the future :slightly_smiling_face:

DavidMStraub avatar Sep 25 '22 21:09 DavidMStraub

I'd be happy to accept a pull request for an esm version. The difficulty is that we'd need to set up some compilation process for the non esm version. The benefits are also not as large as with other libraries since the code is so small.

domoritz avatar Sep 25 '22 21:09 domoritz