feat: Add apply option to addWxtPlugin to filter which endpoint plugin load - #2613
Open
fkatsuhiro wants to merge 2 commits into
Open
fkatsuhiro wants to merge 2 commits into
fkatsuhiro wants to merge 2 commits into
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
fkatsuhiro
force-pushed
the
feat/issue-1627
branch
from
September 8, 2026 12:36
272c9da to
8f454e0
Compare
fkatsuhiro
force-pushed
the
feat/issue-1627
branch
from
September 9, 2026 22:35
8f454e0 to
f9650aa
Compare
fkatsuhiro
marked this pull request as ready for review
September 9, 2026 22:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
By embedding the entrypoint identifier as a query parameter (
?entrypoint=<name>) into the virtual module ID, the entrypoint is determined dynamically upon module resolution. Each plugin's apply hook is then evaluated using the extracted entrypoint to generate code containing only the matching plugins.Manual Testing
Prepare file which use
addWxtPluginand specify 'background' entry point. After it, run build and this commant under /packages/qwxt-demo directorygrep -rl "test-plugin" .output/chrome-mv3. This result confirms that the build process run with the specifiled entrypoint.Before implementation
After implentation
Related Issue
This PR closes #1627