Skip to content

Release ESM build in dist #1338

@gavinr

Description

@gavinr

Describe the problem

An ESM file is not included in the Esri Leaflet release:
https://unpkg.com/browse/esri-leaflet@3.0.8/dist/
... but would it be good if we did? I think this would allow users to import ESM directly from CDNs like Unpkg.

Describe the proposed solution

Leaflet releases an ESM build in their dist release. They started doing it at v1.3.2:

I have not looked into how they are generating it but I assume we could do a similar thing.

Alternatives considered

A workaround is to use the Skypack CDN like this: https://codepen.io/pen?template=wvoKwEv , but adding the ESM file ourselves would give added flexibility.

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions