Skip to content

Conversation

@brunob
Copy link
Member

@brunob brunob commented Dec 4, 2025

  • Brings compatibility for Leaflet 2
  • Restructure project: source in src/, distribution files in dist/
  • Add Rollup build system to generate ES module and UMD distributions
  • Use named imports from Leaflet
  • Configure dual package exports in package.json (ESM + UMD)
  • Add Leaflet as peerDependency (^1.7.0 || >=2.0.0-alpha.1)
  • Add demo pages for both ESM and UMD usage patterns with Import Maps

Ref: #656

@brunob brunob marked this pull request as draft December 4, 2025 11:58
@brunob
Copy link
Member Author

brunob commented Dec 4, 2025

Here is the big part @jieter but there's still a lot of work to fix preview page, and i'm not sure to have motivation to upgrade all vendor script :\

Another options would be to point demo page to https://leaflet-extras.github.io/leaflet-providers/ and wait for someone to upgrade preview page or ditch it if we don't have energy to do it.

@brunob brunob force-pushed the esm branch 2 times, most recently from 91949d5 to 9c9cf43 Compare December 5, 2025 14:31
- Brings compatibility for Leaflet 2
- Restructure project: source in src/, distribution files in dist/
- Add Rollup build system to generate ES module and UMD distributions
- Use named imports from Leaflet
- Configure dual package exports in package.json (ESM + UMD)
- Add Leaflet as peerDependency (^1.7.0 || >=2.0.0-alpha.1)
- Add demo pages for both ESM and UMD usage patterns with Import Maps

Ref: #656
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants