Leaflet / Leaflet.markercluster

Marker Clustering plugin for Leaflet
MIT License
3.98k stars 1k forks source link

Support for ES version of the module #1081

Closed FiabioProjects closed 1 year ago

FiabioProjects commented 1 year ago

Hi, I'd like to include this plugin in my project, however I cannot make it work as it is, but the ECMASCRIPT version module is required in order to be imported correctly. Is it on your mind to release the esm version of leaflet.markercluster? (Like leafet did for its leaflet-src.esm). Thanks in advance

feeva commented 1 year ago

@FiabioProjects You can just import.

import 'leaflet';
import 'leaflet.markercluster'

Btw, I have also added the package @types/leaflet for type support.