mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
364 stars 180 forks source link

Update the library to use ES6 modules #495

Open daniel-grabowski opened 1 year ago

daniel-grabowski commented 1 year ago

Changes:

Since using require to load an ES module is not supported, required code will need to change from require(...) to import.

Related to https://github.com/mapbox/mapbox-gl-geocoder/issues/429