Skip to content

Conversation

@aklinker1
Copy link
Member

@aklinker1 aklinker1 commented Feb 7, 2026

Overview

Instead of hard switching to @wxt-dev/runner as in #1700, first make web-ext a peer dependency. Then it will be easy to add support for @wxt-dev/runner as a peer similar to web-ext without a breaking change, and give devs an easy path to migrate if they want.

  • See updated docs for breaking changes.
  • I updated the templates so new projects continue to open the browser during development by default.
  • Move runner construction to resolveConfig, allowing modules to override the default and provide their own runner. Follows standards for construction of other objects on the wxt instance, like logger
  • Update tests

Manual Testing

cd packages/wxt-demo

# Make sure the browser doesn't open automatically
pnpm rm web-ext
pnpm dev

# Make sure the browser does open automatically
pnpm add web-ext
pnpm dev

Related Issue

This PR closes #2078

@aklinker1 aklinker1 self-assigned this Feb 7, 2026
@aklinker1 aklinker1 requested review from PatrykKuniczak and removed request for PatrykKuniczak February 7, 2026 15:24
@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

❌ Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (major@3cc44c5). Learn more about missing BASE report.

Files with missing lines Patch % Lines
packages/wxt/src/core/create-server.ts 57.14% 3 Missing ⚠️
packages/wxt/src/core/runners/web-ext.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             major    #2079   +/-   ##
========================================
  Coverage         ?   76.00%           
========================================
  Files            ?      112           
  Lines            ?     3046           
  Branches         ?      692           
========================================
  Hits             ?     2315           
  Misses           ?      647           
  Partials         ?       84           

☔ View full report in Codecov by Sentry.
📢 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
Copy link
Member Author

@PatrykKuniczak I'll add you as a reviewer once this is ready so you can see one of my PRs. Also if you have any feedback, please share!

@aklinker1 aklinker1 marked this pull request as ready for review February 7, 2026 16:46
@aklinker1 aklinker1 requested a review from Timeraa as a code owner February 7, 2026 16:46
@aklinker1 aklinker1 marked this pull request as draft February 7, 2026 16:52
@aklinker1 aklinker1 marked this pull request as ready for review February 7, 2026 17:04
@aklinker1 aklinker1 requested review from PatrykKuniczak and removed request for Timeraa February 7, 2026 17:04
@aklinker1 aklinker1 changed the title fix!: Make web-ext a peer dependency fix!: Make web-ext a peer dependency and expose wxt.config.runner object to modules Feb 7, 2026
@aklinker1 aklinker1 changed the title fix!: Make web-ext a peer dependency and expose wxt.config.runner object to modules fix!: Make web-ext a peer dependency Feb 7, 2026
aklinker1 and others added 2 commits February 8, 2026 08:29
Co-authored-by: Patryk Kuniczak <p.kuniczak@gmail.com>
Co-authored-by: Patryk Kuniczak <p.kuniczak@gmail.com>
Copy link
Collaborator

@PatrykKuniczak PatrykKuniczak left a comment

Choose a reason for hiding this comment

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

LGTM

@aklinker1 aklinker1 merged commit 19c1d0a into major Feb 8, 2026
12 checks passed
@aklinker1 aklinker1 deleted the runner-peers branch February 8, 2026 17:39
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Thanks for helping make WXT better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants