Closed jeroenkampinga closed 3 years ago
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.