Open nonlinearcom opened 1 month ago
Yes, I have encountered the same issue, and this library cannot be tree-shaken.🤔
Hey, would like to contribute and refactor it? I think it would be acceptable if a Breaking Change is introduced. The best in my opinion would be to allow to import / load components individually and therefore expose them.
Hi, after adding vue3-openlayers as a plugin to a clean Nuxt project, the client bundle shows a large file (vue3-openlayers.es.js) of over 1MB. The same issue occurs when performing selected imports, like
import { Map, Layers, Sources } from "vue3-openlayers
(975 KB).Is it possible to reduce the size of the bundled package? 🤔
To Reproduce Steps to reproduce the behavior:
Reproduction repo
Run
npx nuxi analyze
Screenshots