Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add tree-shaking support #165

Open
sorioinc opened this issue May 23, 2024 · 0 comments
Open

[FEATURE] Add tree-shaking support #165

sorioinc opened this issue May 23, 2024 · 0 comments

Comments

@sorioinc
Copy link

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, 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.

Can you make radar-sdk-js tree-shakeable, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant