Skip to content

feat!: Replace web-ext with @wxt-dev/runner #1700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

aklinker1
Copy link
Collaborator

@aklinker1 aklinker1 commented Jun 2, 2025

Overview

web-ext has few problems:

  1. ~20MB install footprint (20% of WXT's total install footprint, even after using my lighter fork, web-ext-run)
  2. Relies on --load-extension, which has been deprecated (there are plans to upgrade to using the CDP, like @wxt-dev/runner, but it hasn't been implemented yet).
  3. A little slower (see ./scripts/benchmarks/browser-startup.sh)
    Package Time to open browser (mean, N=20)
    web-ext 634ms
    @wxt-dev/runner 594ms

TODO

  • Can you connect a remote debugger to it?

Manual Testing

cd pacakges/wxt-demo
pnpm dev

This should open your browser.

Related Issue

N/A

@aklinker1 aklinker1 requested a review from Timeraa as a code owner June 2, 2025 21:59
@aklinker1 aklinker1 self-assigned this Jun 2, 2025
Copy link

netlify bot commented Jun 2, 2025

Deploy Preview for creative-fairy-df92c4 failed.

Name Link
🔨 Latest commit ebdd01c
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/683e253adf27e90008b3c3e6

@aklinker1 aklinker1 added the chore label Jun 2, 2025
@aklinker1 aklinker1 marked this pull request as draft June 2, 2025 21:59
Comment on lines +10 to +14
if (wxt.config.browser === 'firefox' && wxt.config.manifestVersion === 3) {
throw Error(
'Dev mode does not support Firefox MV3. For alternatives, see https://github.com/wxt-dev/wxt/issues/230#issuecomment-1806881653',
);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Extract to own PR.

@@ -3,7 +3,7 @@ import { debug } from './debug';

const debugBidi = debug.scoped('bidi');

export interface BidiConnection extends Disposable {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Extract disposable changes to own PR.

DEFAULT_CHROMIUM_PREFS,
),
args: [
'--unsafely-disable-devtools-self-xss-warnings',
Copy link
Collaborator Author

@aklinker1 aklinker1 Jun 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add this flag?

3481313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant