From 569411975088223f45f01db1f56257c9974a050a Mon Sep 17 00:00:00 2001 From: w8r Date: Fri, 6 Mar 2026 18:35:44 +0100 Subject: [PATCH 1/3] Add ESM module support with Rollup build - Add ESM source in src/leaflet-mapbox-gl.js with import/export syntax - Set up Rollup to build both ESM and UMD bundles to dist/ - Add package.json exports field for conditional ESM/CJS resolution - Add "module" field pointing to ESM build - Add TypeScript type definitions - Configure JSHint for ES6+ with .jshintrc - Keep original leaflet-mapbox-gl.js for backwards compatibility Usage: - ESM: import { mapboxGL } from 'mapbox-gl-leaflet' - CJS: const { mapboxGL } = require('mapbox-gl-leaflet') - Browser: