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

Client bundle size (Nuxt) #378

Open
nonlinearcom opened this issue Aug 29, 2024 · 2 comments
Open

Client bundle size (Nuxt) #378

nonlinearcom opened this issue Aug 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nonlinearcom
Copy link

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? 🤔

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid: "latest" from the root project
└── [email protected]

To Reproduce
Steps to reproduce the behavior:

Reproduction repo

Run npx nuxi analyze

Screenshots
Screenshot 2024-08-29 at 16 22 46

@nonlinearcom nonlinearcom added the bug Something isn't working label Aug 29, 2024
@YXYH-12138
Copy link

Yes, I have encountered the same issue, and this library cannot be tree-shaken.🤔

@d-koppenhagen
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants