You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using react-map-gl-geocoder in combination with react-map-gl. When inspecting my bundle I see mapbox-gl.js is bundled twice. Once from react-map-gl and once as (peer)dependency from react-map-gl-geocoder. Is there a way to remove the duplicate code when combining this package with react-map-gl
e.
The text was updated successfully, but these errors were encountered:
I'm not sure, but this project is pretty much in maintenance mode, so you could just copy pasta the code into your codebase instead of installing it as a dependency. It's only one file. I've always purposely kept all the code in one file to make it easy to copy pasta. Everything you need is in this file https://github.com/SamSamskies/react-map-gl-geocoder/blob/master/src/index.js.
I'm using
react-map-gl-geocoder
in combination with react-map-gl. When inspecting my bundle I seemapbox-gl.js
is bundled twice. Once fromreact-map-gl
and once as (peer)dependency fromreact-map-gl-geocoder
. Is there a way to remove the duplicate code when combining this package withreact-map-gl
e.
The text was updated successfully, but these errors were encountered: