nuxt-modules / nuxt-modules/leaflet

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

Open
#124 6 comments 1 reaction 0 assignees View on GitHub

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:

Image

I analyzed the client bundle and see it also there:

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

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.