Skip to content

Reduce Package Size #1044

Closed
5 of 5 issues completed
Closed

Description

@aklinker1

Feature Request

This is an ongoing ticket around reducing the size of WXT. WXT alone is only 760kb. However, when including all it's dependencies, it's 110mb. I'd like to reduce that number.

https://pkg-size.dev/wxt (sort by "Package Size" or "Dependency Size" for best view IMO)

Some ideas:

Also see https://e18e.dev for more ways to reduce the dependency footprint.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. changed the title [-]Reduce Package Size[/-] [+][Ongoing] Reduce Package Size[/+] on Oct 4, 2024
  2. Timeraa commented on Oct 17, 2024

    @Timeraa
    Member

    Add #1050 to le list

  3. ferenc-a commented on Dec 4, 2024

    @ferenc-a

    It also had me concerned that adding wxt to my package added over 5k lines to my package lock.
    Could this also be reduced?
    Could the UI frameworks that are supported by wxt be responsible for this? If so, could their dependencies be removed or made optional?

  4. aklinker1 commented on Dec 4, 2024

    @aklinker1
    MemberAuthor

    It also had me concerned that adding wxt to my package added over 5k lines to my package lock.
    Could this also be reduced?

    5K lines ain't bad. Adding a single AWS SDK package results in 10k lines added. I'm more concerned about the space taken up by the node_modules.

    Could the UI frameworks that are supported by WXT be responsible for this? If so, could their dependencies be removed or made optional?

    The wxt package doesn't directly depend on any UI frameworks, and the modules that add support for UI frameworks only directly depend on the vite plugins. They have peer dependency requirements for the UI frameworks. So "could their dependencies be removed or made optional?" They already are.

  5. PatrykKuniczak commented on Apr 11, 2026

    @PatrykKuniczak
    Collaborator
  6. aklinker1 commented on Apr 11, 2026

    @aklinker1
    MemberAuthor

    Sure, as done as this will ever be. There will be more, but we can open separate issues for them

  7. changed the title [-][Ongoing] Reduce Package Size[/-] [+]Reduce Package Size[/+] on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions