Skip to content

docs: document content script per-browser options#2427

Open
ded-furby wants to merge 1 commit into
wxt-dev:mainfrom
ded-furby:chore/doc-per-browser-options
Open

docs: document content script per-browser options#2427
ded-furby wants to merge 1 commit into
wxt-dev:mainfrom
ded-furby:chore/doc-per-browser-options

Conversation

@ded-furby

@ded-furby ded-furby commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR adds a concise docs example for defineContentScript showing per-browser configuration objects for supported options.

It demonstrates how fields like matches, runAt, and world can vary by browser in entrypoints (for example chrome vs firefox mappings).

This addresses issue #2304 by documenting existing PerBrowser support.

Manual Testing

  • npm run check (root) was executed in this repo context, but it fails in this environment due scripts/check-format.js attempting to read a 2+GiB file (ERR_FS_FILE_TOO_LARGE) before completion.
  • npm run check in wxt was executed and completed the initial shared checks, but fails due pre-existing workspace issues:
    • wxt-demo TypeScript problems in unrelated sample/demo files.
    • package-level tsdown configuration expects a generated ./.wxt/tsconfig.json in certain package contexts.

No code changes beyond this docs update are included.

Related Issue

Closes #2304

@netlify

netlify Bot commented Jun 20, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit ce5abf5
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a36b88877a2fa00085e03ef
😎 Deploy Preview https://deploy-preview-2427--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.

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.

Document entrypoint PerBrowser options

1 participant