Skip to content

feat(Firefox): List files in sources zip - #2513

Merged
aklinker1 merged 4 commits into
majorfrom
list-files-in-sources-zip
Jul 26, 2026
Merged

aklinker1 merged 4 commits into
majorfrom
list-files-in-sources-zip

Conversation

@aklinker1

@aklinker1 aklinker1 commented Jul 26, 2026 •

Copy link
Copy Markdown
Member

Overview

With the changes to in #2111, we need to make it easier to migrate. This PR prints all the files in the ZIP so you can quickly see what needs to be removed or included.

Manual Testing

$ cd packages/wxt-demo
$ bun wxt zip -b firefox
WXT 0.20.27
ℹ Example module with options: { a: 'a', c: 'c' }                                                                                                                                                                                                                                                                                  12:49:01 PM
ℹ [i18n] Default locale: en                                                                                                                                                                                                                                                                                                        12:49:01 PM
ℹ Building firefox-mv2 for production with Vite 7.3.1                                                                                                                                                                                                                                                                              12:49:01 PM
...
✔ Built extension in 1.506 s                                                                                                                                                                                                                                                                                                       12:49:03 PM
  ├─ .output/firefox-mv2/manifest.json                                 1.07 kB
  ├─ .output/firefox-mv2/example.html                                  287 B
  ├─ .output/firefox-mv2/iframe-src.html                               426 B
  ├─ .output/firefox-mv2/options.html                                  504 B
  ├─ .output/firefox-mv2/popup.html                                    404 B
  ├─ .output/firefox-mv2/sandbox.html                                  287 B
  ├─ .output/firefox-mv2/sidepanel.html                                327 B
  ├─ .output/firefox-mv2/background.js                                 13 kB
  ├─ .output/firefox-mv2/chunks/_virtual_wxt-html-plugins-DPbbfBKe.js  779 B
  ├─ .output/firefox-mv2/chunks/iframe-src-CknGQcVu.js                 73 B
  ├─ .output/firefox-mv2/chunks/logger-BtMHEi2b.js                     848 B
  ├─ .output/firefox-mv2/chunks/options-utuQpyBu.js                    282 B
  ├─ .output/firefox-mv2/content-scripts/automount.js                  10.93 kB
  ├─ .output/firefox-mv2/content-scripts/content.js                    4.24 kB
  ├─ .output/firefox-mv2/content-scripts/example-tsx.js                196.44 kB
  ├─ .output/firefox-mv2/content-scripts/iframe.js                     9.34 kB
  ├─ .output/firefox-mv2/content-scripts/location-change.js            3.74 kB
  ├─ .output/firefox-mv2/content-scripts/main-world.js                 464 B
  ├─ .output/firefox-mv2/content-scripts/ui.js                         13.17 kB
  ├─ .output/firefox-mv2/unlisted.js                                   633 B
  ├─ .output/firefox-mv2/assets/example-2.css                          27 B
  ├─ .output/firefox-mv2/assets/options-06If5sjy.css                   33 B
  ├─ .output/firefox-mv2/assets/popup-1IKQK_ZO.css                     2.13 kB
  ├─ .output/firefox-mv2/content-scripts/automount.css                 2.62 kB
  ├─ .output/firefox-mv2/content-scripts/injected.css                  17 B
  ├─ .output/firefox-mv2/content-scripts/ui.css                        2.3 kB
  ├─ .output/firefox-mv2/_locales/en/messages.json                     714 B
  ├─ .output/firefox-mv2/icons/128.png                                 1.68 kB
  ├─ .output/firefox-mv2/icons/16.png                                  639 B
  ├─ .output/firefox-mv2/icons/32.png                                  1.41 kB
  └─ .output/firefox-mv2/icons/48.png                                  2.3 kB
Σ Total size: 271.11 kB
ℹ Zipping extension...                                                                                                                                                                                                                                                                                                             12:49:03 PM
ℹ Downloading package: [email protected]                                                                                                                                                                                                                                                                                                 12:49:03 PM
ℹ Sources included in wxt-demo-1.0.0-sources.zip                                                                                                                                                                                                                                                                                   12:49:03 PM
  ├─ /.wxt/local_modules/sass-1.97.3.tgz           922.8 kB
  ├─ /coverage/base.css                            5.39 kB
  ├─ /coverage/block-navigation.js                 2.66 kB
  ├─ /coverage/clover.xml                          3.26 kB
  ├─ /coverage/coverage-final.json                 3.98 kB
  ├─ /coverage/favicon.png                         445 B
  ├─ /coverage/index.html                          6.37 kB
  ├─ /coverage/prettify.css                        676 B
  ├─ /coverage/prettify.js                         17.59 kB
  ├─ /coverage/sort-arrow-sprite.png               138 B
  ├─ /coverage/sorter.js                           6.73 kB
  ├─ /coverage/src/app.config.ts.html              4.3 kB
  ├─ /coverage/src/entrypoints/background.ts.html  8.49 kB
  ├─ /coverage/src/entrypoints/index.html          4.47 kB
  ├─ /coverage/src/index.html                      4.38 kB
  ├─ /coverage/src/utils/index.html                4.43 kB
  ├─ /coverage/src/utils/logger.ts.html            3.67 kB
  ├─ /eslint.config.js                             204 B
  ├─ /modules/auto-icons.ts                        72 B
  ├─ /modules/example.ts                           437 B
  ├─ /modules/i18n.ts                              67 B
  ├─ /modules/unocss.ts                            43 B
  ├─ /package.json                                 1.4 kB
  ├─ /src/app.config.ts                            211 B
  ├─ /src/assets/icon.png                          2.68 kB
  ├─ /src/entrypoints/automount.content/index.ts   2.2 kB
  ├─ /src/entrypoints/automount.content/style.css  32 B
  ├─ /src/entrypoints/background.ts                1.6 kB
  ├─ /src/entrypoints/content.ts                   241 B
  ├─ /src/entrypoints/example-2.scss               34 B
  ├─ /src/entrypoints/example-tsx.content.tsx      677 B
  ├─ /src/entrypoints/example.sandbox/index.html   274 B
  ├─ /src/entrypoints/iframe-src/index.html        301 B
  ├─ /src/entrypoints/iframe-src/main.ts           25 B
  ├─ /src/entrypoints/iframe.content.ts            291 B
  ├─ /src/entrypoints/injected.content/index.css   24 B
  ├─ /src/entrypoints/location-change.content.ts   342 B
  ├─ /src/entrypoints/main-world.content.ts        152 B
  ├─ /src/entrypoints/options/index.html           355 B
  ├─ /src/entrypoints/options/main.ts              178 B
  ├─ /src/entrypoints/options/style.css            46 B
  ├─ /src/entrypoints/popup.html                   279 B
  ├─ /src/entrypoints/sandbox.html                 271 B
  ├─ /src/entrypoints/sidepanel.html               231 B
  ├─ /src/entrypoints/ui.content/index.ts          791 B
  ├─ /src/entrypoints/ui.content/manual-style.css  62 B
  ├─ /src/entrypoints/ui.content/style.css         68 B
  ├─ /src/entrypoints/unlisted.ts                  75 B
  ├─ /src/locales/en.yml                           499 B
  ├─ /src/utils/logger.ts                          97 B
  ├─ /tsconfig.json                                211 B
  ├─ /vitest.config.ts                             224 B
  └─ /wxt.config.ts                                1.31 kB
Σ Total size: 1.02 MB
✔ Zipped extension in 605 ms                                                                                                                                                                                                                                                                                                       12:49:03 PM
  ├─ .output/wxt-demo-1.0.0-firefox.zip  98.07 kB
  └─ .output/wxt-demo-1.0.0-sources.zip  964.22 kB
Σ Total size: 1.06 MB
✔ Finished in 2.449 s

As you can see, it's now obvious we should exclude the coverage folder from the zip.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Jul 26, 2026
@aklinker1
aklinker1 marked this pull request as ready for review July 26, 2026 17:51
@aklinker1 aklinker1 mentioned this pull request Jul 26, 2026
29 tasks done
@codecov

codecov Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.31%. Comparing base (2fa387a) to head (a3568f3).

Additional details and impacted files
@@            Coverage Diff             @@
##            major    #2513      +/-   ##
==========================================
- Coverage   79.37%   79.31%   -0.07%     
==========================================
  Files         131      131              
  Lines        3971     3973       +2     
  Branches      906      906              
==========================================
- Hits         3152     3151       -1     
- Misses        728      730       +2     
- Partials       91       92       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aklinker1
aklinker1 merged commit 5697214 into major Jul 26, 2026
13 checks passed
@aklinker1
aklinker1 deleted the list-files-in-sources-zip branch July 26, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant