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

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