Skip to content

🐛 fix developer extension packaging#4024

Merged
BenoitZugmeyer merged 1 commit intomainfrom
benoit/fix-developer-extension-packaging
Dec 11, 2025
Merged

🐛 fix developer extension packaging#4024
BenoitZugmeyer merged 1 commit intomainfrom
benoit/fix-developer-extension-packaging

Conversation

@BenoitZugmeyer
Copy link
Member

Motivation

Since the wxt migration, the developer extension build is using subfolders ('chunks/', 'assets/'). The way we used zip removed those subfolders entirely, so some file failed to load.

Changes

Make sure the zip command does not strip folders.

Test instructions

You can run node scripts/deploy/publish-developer-extension.ts to build and package the extension. The script fails because you don't have authentications to publish the extension, but you should still have a developer-extension.zip file in the repo root. Ensure that this archive contains chunks and assets folders:

unzip -l developer-extension.zip
Archive:  developer-extension.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
    15774  12-10-2025 17:05   icon.png
    65983  12-10-2025 17:05   background.js
      357  12-10-2025 17:05   devtools.html
     1138  12-10-2025 17:05   contentScriptIsolated.js
        0  12-10-2025 17:05   chunks/
      118  12-10-2025 17:05   chunks/devtools-N5SpxP-n.js
    21234  12-10-2025 17:05   chunks/startRecording-Tq6kCe-q.js
     6078  12-10-2025 17:05   chunks/profiler-SIPotMh0.js
   634316  12-10-2025 17:05   chunks/panel-NpiZJTsr.js
      779  12-10-2025 17:05   chunks/_virtual_wxt-html-plugins-DPbbfBKe.js
      457  12-10-2025 17:05   panel.html
      324  12-10-2025 17:05   manifest.json
     2370  12-10-2025 17:05   contentScriptMain.js
        0  12-10-2025 17:05   assets/
   206327  12-10-2025 17:05   assets/panel-BNELzgi4.css
---------                     -------
   955255                     15 files

You can extract that zip file and load it as a local extension to make sure it works.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

Since the wxt migration, the developer extension build is using
subfolders ('chunks/', 'assets/'). The way we used zip removed those
subfolders entirely, so some file failed to load.
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner December 10, 2025 16:18
@BenoitZugmeyer BenoitZugmeyer merged commit c9c01c9 into main Dec 11, 2025
22 checks passed
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/fix-developer-extension-packaging branch December 11, 2025 11:55
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants