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 don't think you can... Since maplibre uses workers and their code is also bundled, you can't easily import just part of the library...
I think this issue is a duplicate of #977.
maplibre-gl-js version: 3.0.1
browser: Firefox 113.0.2
How can i use ES2015 (ES6) Imports to reduce Bundle Size via Tree Shaking (https://webpack.js.org/guides/tree-shaking/)?
I would like to use something like this:
instead of
because this general import increases my bundle size by about 740 KB. I have not found anything about this in the documentation.
With Minisearch for example I can use this import
and tree shaking works immediately because ES2015 (ES6) imports are supported.
The text was updated successfully, but these errors were encountered: