Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add whitelist #34

Open
Otanikotani opened this issue Jan 21, 2025 · 0 comments
Open

Add whitelist #34

Otanikotani opened this issue Jan 21, 2025 · 0 comments

Comments

@Otanikotani
Copy link

Hello! Can we, in addition to excludeControllers and excludeProviders have similar includeControllers and includeProviders where we basically set up a whitelist of components we want to autospan? This is useful when we do not necessarily know the names of the providers and controllers (or can't list them in the configuration) that come from 3rd parties for instance.

We have a case when one of the third party modules generate providers which we would want to not to autospan but we can't use excludeProviders because the provider names are generated in the runtime.

In my view, blacklist overrides whitelist, so if both are specified it should be not autospanned.

Willing to make a PR for this, if needed! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant