nuxt-modules / nuxt-modules/leaflet
perf: leaflet package is present 2 times in client bundle?
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Vue
- Stars
- 169
- Forks
- 6
- Avg merge
- 12d 23h
- Merged PRs (30d)
- 1
Description
When bulding my application for production i noticed that the leaflet package is listed 2 times:
I analyzed the client bundle and see it also there:
Is this really necessary to ship both of these variants (default + esm)?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing a production build and inspecting the client bundle, as shown in the issue. Trace why the Leaflet package appears in both default and ESM variants, then confirm whether both are required and verify that the duplicate is removed without breaking the build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nuxt
- Domain
- build-system, frontend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100