Skip to content

feat(modules): Add support for augumenting entrypoint options - #2149

Merged
aklinker1 merged 3 commits into
mainfrom
passthrough-module-options
Feb 21, 2026
Merged

aklinker1 merged 3 commits into
mainfrom
passthrough-module-options

Conversation

@aklinker1

@aklinker1 aklinker1 commented Feb 21, 2026 •

Copy link
Copy Markdown
Member

Overview

This allows modules to augment WXT's types and add their own config options to entrypoints. See the docs change for an example.

It also introduces the ability to find <meta name="wxt.<name>" content="..." /> params in HTML entrypoints, adding them to the entrypoint's option internally.

Manual Testing

See unit test changes.

Related Issue

Related to #2020 - If the module discussed there needs to add custom options.

@netlify

netlify Bot commented Feb 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit bd7d79b
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/699a2947c743e80008052702
😎 Deploy Preview https://deploy-preview-2149--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 Feb 21, 2026
@pkg-pr-new

pkg-pr-new Bot commented Feb 21, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

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

@wxt-dev/auto-icons

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

@wxt-dev/browser

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

@wxt-dev/i18n

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

@wxt-dev/module-react

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

@wxt-dev/module-solid

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

@wxt-dev/module-svelte

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

@wxt-dev/module-vue

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

@wxt-dev/runner

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

@wxt-dev/storage

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

@wxt-dev/unocss

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

@wxt-dev/webextension-polyfill

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

wxt

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

commit: bd7d79b

@codecov

codecov Bot commented Feb 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.14%. Comparing base (a6904b6) to head (bd7d79b).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...es/wxt/src/core/utils/building/find-entrypoints.ts 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2149      +/-   ##
==========================================
+ Coverage   75.94%   76.14%   +0.20%     
==========================================
  Files         113      113              
  Lines        3043     3048       +5     
  Branches      680      682       +2     
==========================================
+ Hits         2311     2321      +10     
+ Misses        646      642       -4     
+ Partials       86       85       -1     

☔ 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 aklinker1 modified the milestones: DX Improvements, v1.0 Feb 21, 2026
@aklinker1 aklinker1 changed the title feat: Internally resolve all entrypoint options, not just ones defined by types feat(modules): Add support for augumenting entrypoint options Feb 21, 2026
Comment thread packages/wxt/src/types.ts
}

export interface OptionsEntrypointOptions extends BaseEntrypointOptions {
title?: string;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All HTML entrypoints get this, without it a test had a type error.

@aklinker1
aklinker1 marked this pull request as ready for review February 21, 2026 21:57
@aklinker1
aklinker1 requested a review from Timeraa as a code owner February 21, 2026 21:57
@aklinker1
aklinker1 merged commit 182d575 into main Feb 21, 2026
21 checks passed
@aklinker1
aklinker1 deleted the passthrough-module-options branch February 21, 2026 21:57
@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.

1 participant