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

perf: leaflet package is present 2 times in client bundle? #124

Open
Quasarman opened this issue Nov 22, 2024 · 2 comments
Open

perf: leaflet package is present 2 times in client bundle? #124

Quasarman opened this issue Nov 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Quasarman
Copy link

When bulding my application for production i noticed that the leaflet package is listed 2 times:

Image

I analyzed the client bundle and see it also there:

Is this really necessary to ship both of these variants (default + esm)?

Image

@Gugustinette
Copy link
Collaborator

I'll look at that when I have time, leaflet ships both variant, but as leaflet is client side, only the one loaded in the browser with Nuxt Leaflet should ship I guess.

That's some interesting bundler optimization to look at 👍

@Gugustinette Gugustinette added the enhancement New feature or request label Nov 23, 2024
@Quasarman
Copy link
Author

Great! Thank you!

@Gugustinette Gugustinette changed the title leaflet package is present 2 times in client bundle? perf: leaflet package is present 2 times in client bundle? Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants