Leaflet: ES Module not being shipped

Created on 10 Apr 2018  Â·  3Comments  Â·  Source: Leaflet/Leaflet

How to reproduce

  • Leaflet version I'm using: 1.3.1
  • Browser (with version) I'm using: N/A
  • OS/Platform (with version) I'm using: macOS
  • npm install leaflet

What behaviour I'm expecting and which behaviour I'm seeing

Per the source code's package.json, I expect dist/leaflet-src.esm.js to exist and be referenced by the module field, so webpack can optimise my bundle size and only import what I need. Instead, the file does not exist in node_modules/leaflet, and there's no reference to it in the imported package.json. The imported package.json does say version 1.3.1 though.

Minimal example reproducing the issue

screen shot 2018-04-10 at 6 15 09 am

Most helpful comment

Maybe I'll have some time to release it next week

All 3 comments

The latest release of Leaflet (v1.3.1) was done on January, 18th. ES modules were merged from https://github.com/Leaflet/Leaflet/pull/6021 on February 1st.

Nothing to do here, except wait patiently until the next release.

Maybe I'll have some time to release it next week

@cherniavskii I think this can be closed, ESM was included in 1.3.2

> ls -1 node_modules/leaflet/dist/
images
leaflet-src.esm.js
leaflet-src.esm.js.map
leaflet-src.js
leaflet-src.js.map
leaflet.css
leaflet.js
leaflet.js.map
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonnyBGod picture JonnyBGod  Â·  4Comments

frankjar picture frankjar  Â·  4Comments

gdbd picture gdbd  Â·  3Comments

ssured picture ssured  Â·  3Comments

remilev picture remilev  Â·  4Comments