Skip to content

feat: add watch options config - #2439

Merged
aklinker1 merged 1 commit into
wxt-dev:mainfrom
cookesan:watch-options-config
Jun 29, 2026
Merged

feat: add watch options config#2439
aklinker1 merged 1 commit into
wxt-dev:mainfrom
cookesan:watch-options-config

Conversation

@cookesan

Copy link
Copy Markdown
Contributor

Overview

Adds a top-level watchOptions config field for dev-mode file watching. The options are merged into Vite's Chokidar watcher while keeping WXT's internal .output and .wxt ignores, and the syntax-error recovery watcher now uses the same options.

Manual Testing

  • bun run --filter wxt test user-config
  • bun run --filter wxt check
  • bun run --filter wxt test run
  • bun run docs:build

Related Issue

Closes #2342

@netlify

netlify Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 084fde0
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a4043c81a450a00078c5104
😎 Deploy Preview https://deploy-preview-2439--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Jun 27, 2026
@aklinker1
aklinker1 enabled auto-merge (squash) June 29, 2026 15:28
@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2439

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2439

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2439

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2439

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2439

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2439

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2439

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2439

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2439

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2439

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2439

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2439

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2439

wxt

npm i https://pkg.pr.new/wxt@2439

commit: 084fde0

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.45%. Comparing base (4896cd2) to head (084fde0).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
packages/wxt/src/core/create-server.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2439      +/-   ##
==========================================
+ Coverage   78.38%   78.45%   +0.06%     
==========================================
  Files         133      133              
  Lines        3882     3884       +2     
  Branches      875      877       +2     
==========================================
+ Hits         3043     3047       +4     
+ Misses        751      749       -2     
  Partials       88       88              

☔ 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 8dfedf2 into wxt-dev:main Jun 29, 2026
20 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose chokidar watch options in wxt.config.ts (e.g. for polling in Docker/devcontainer)

2 participants