-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hi, and I'm happy to make these contributions via PR, but I wanted to create an issue to get sign-off,
I'd love some configuration options to have stricter control over what components this plugin affects,
In order of ascending preference:
Namely:
- Option to pass in a Regex / Function that decides if the component's name matches (using
node.id.name). Potentially if it's a function, it could return a string to programatically generate the component display name (I personally do not need this) - Option to decide which types of components should be injected into. (Class-Based, Var Declaration Based, etc)
- Option to decide if this only applies to components that are exported on the top level of a file.
I would've suggested a folder / file restriction, but I realize that's better served by Webpack already :P
Metadata
Metadata
Assignees
Labels
No labels