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
The dependency on micromatch package should be removed #7591
Comments
That |
I agree about the |
Send a PR |
Hmm, should globbing then support only a limited set of wildcards? |
any limitation would be a breaking change. So only try to reduce dependencies without reducing functionality. You could also consider sending a PR to micromatch, or dependencies, to remove |
I'm the author of micromatch.
This would be fantastic. We're actively working to improve micromatch. As long as all 36k unit tests continue passing and we keep parity with bash, we'll take any PR that improves the performance or reduces code. Reducing deps and leveraging new es syntax is a top priority. |
Great, so I guess we can close this one. |
I've observed that you have a dependency on micromatch npm package which pulls in additional trivial packages like
nanomatch
,is-odd
,is-even
andis-number
. The only place you're using this module is in the /lib/optimize/SideEffectsFlagPlugin.js which should be trivial to implement in pure JS.I hope you'll do it and remove this dependency soon. I also hope you understand that adding dependencies for trivial functionality like this is a worst practice presently plaguing the javascript world and the idea of "don't repeat yourself" is being carried too far with packages like
is-odd
andis-even
.The text was updated successfully, but these errors were encountered: