Repository navigation
chore: Add web-ext to wxt-demo and analytics for development - #2663
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/is-background
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/runner
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2663 +/- ##
==========================================
- Coverage 79.68% 79.63% -0.05%
==========================================
Files 138 138
Lines 4111 4111
Branches 943 943
==========================================
- Hits 3276 3274 -2
- Misses 737 738 +1
- Partials 98 99 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for helping make WXT better! |
|
2 Approvals, but it doesn't work for me(on MacOS) :( As far, as i've went with Copilot, that's problem with Chrome, it rejects Even: 'extensions.ui.developer_mode': true,doesn't solve issue/ @MannXo Are you want to try to figure it out? Reference: mozilla/web-ext#3664 |
|
I don't know man, I only use Windows and Linux, worked for me on both! |
Maybe i've done sth wrongly. |
It's the default config. |
I've checked |
|
@nishu-murmu Have you, "Dev mode" enabled, after |
|
@nishu-murmu Copilot found, that's issue with But i'll edit related issue also. |

Overview
Adds
web-extas a devDependency towxt-demoandanalytics, the two packages that runwxtin dev. It goes in the rootcatalogat^10.5.0, andpackages/wxtnow usescatalog:too, so all three stay on one version.Until now the demos only opened the browser because
wxt's runner resolvesweb-extfrompackages/wxt/node_modules, where it's a devDependency ofwxtitself. This makes it explicit.Developer mode needs nothing else. web-ext 10 sets
extensions.ui.developer_mode: trueby default and merges WXT'schromiumPrefon top.On pinning, Chrome reads
extensions.pinned_extensionsfrom the profile, and it works throughchromiumPref:The catch is the ID. For an unpacked extension it's derived from the absolute path of the output directory (sha256 of the path, first 32 hex chars mapped
0-ftoa-p), so it's different on every machine and can't be committed as a constant. I left it out of this PR. If you want it, the runner could compute the ID fromoutDirand pin the dev extension by default. Happy to open that separately. I've only verified the ID formula on macOS so far.Manual Testing
bun run --filter wxt-demo devon Chrome 155 (macOS), then read the temporary profile'sDefault/Preferences:extensions.ui.developer_modeistrueweb-ext.config.tssettingpinned_extensionsto the computed ID, the ID matches the one Chrome assigned and stays inpinned_extensionsafter loadpinned_extensionsis unsetI checked the prefs, not the toolbar visually.
bun ci,bun run buildc all,bun run check, demobuild:allandwxt zip, andbun run testall pass.Related Issue
This PR closes #2662