Skip to content

[Module API] Filter which entrypoints plugins run in #1627

Description

@aklinker1

Feature Request

Add a way to filter which entrypoints plugins are added to.

Specifically, modify the addWxtPlugin function like so:

export default defineWxtModule((wxt) => {
  addWxtPlugin(
    wxt,
    "wxt-module-analytics/client-plugin", 
    (entry /* or `group` */) => {
      return true
    },
  );
});

The third parameter should be optional and default to the current behavior of running the plugin in all entrypoints.

Is your feature request related to a bug?

If so, add a link here. If not, write "N/A"

Activity

  1. added this to the v1.0 milestone on Feb 6, 2026
  2. fkatsuhiro commented on Aug 24, 2026

    @fkatsuhiro
    Collaborator

    Hi, I'm interested this issue.
    Let me try to implement this. Thank you.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions