-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Passing empty array is no longer possible #424
Comments
Change condition |
Yeah, I know, that you can write it this way :) But before passing an empty array didn't trigger an error. So, technically, it's a breaking change. |
Let's fix it 👍 |
Watching this as it broke a number of projects, pinning temporarily to 5.0.x |
In next release it will be returned and you can't use empty array |
Why? [ patterns.length ? new CopWebpackPlugin({ patterns }) : false ].filter(Boolean) |
The latest release introduced breaking change (options validation). Passing an empty array is no longer possible. So it broke cases like
example: https://github.com/styleguidist/react-styleguidist/blob/master/src/scripts/make-webpack-config.ts#L100
Expected Behavior
I honestly don't know if it's a valid case to support :)
The text was updated successfully, but these errors were encountered: