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

feat(plugin): add support for declareValuePlugin #4490

Merged
merged 3 commits into from
Oct 14, 2023

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Oct 14, 2023

Add support for declareValuePlugin. With it, you can define a plugin as a value, instead of using a factory method or class.

export const strykerPlugins = [declareValuePlugin(PluginKind.Ignorer, {
  shouldIgnore(path) {
  }
});

Add support for `declareValuePlugin`. With it, you can define a plugin as a value, instead of using a factory method or class.

```js
export const strykerPlugins = [declareValuePlugin(PluginKind.Ignorer, {
  shouldIgnore(path) {
    // tada
  }
});
```
@nicojs nicojs enabled auto-merge (squash) October 14, 2023 22:31
@nicojs nicojs merged commit a3c35ca into master Oct 14, 2023
14 checks passed
@nicojs nicojs deleted the feat/declare-value-plugin branch October 14, 2023 23:00
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

Successfully merging this pull request may close these issues.

None yet

1 participant