Our final app bundle becomes huge after adding maplibre-gl. Our use case only includes the use of the SearchApi autocomplete feature, nothing around the UI and mapping. However, since maplibre-gl is a dependency, not adding it results in error and blocks javascript execution; even if we are not making use of the mapping.
We are using Webpack, so I created an alias on production build that will replace maplibre-gl with a mock module. But it feels hacky.
Hello all 👋🏼
Our final app bundle becomes huge after adding
maplibre-gl
. Our use case only includes the use of the SearchApi autocomplete feature, nothing around the UI and mapping. However, sincemaplibre-gl
is a dependency, not adding it results in error and blocks javascript execution; even if we are not making use of the mapping.We are using Webpack, so I created an alias on production build that will replace
maplibre-gl
with a mock module. But it feels hacky.Can you make radar-sdk-js tree-shakeable, please?