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
Use the switch
statement instead of if
#34215
Conversation
bfe18e8
to
997900f
Compare
The re-write is ok. However I am not sure, if this file is mirroring the latest picture of our components. Is there any case where we could read the "imports" during the build? It would be safer to create them dynamically |
@GeoSot It's possible to use functions for |
I'd land this and then see if we can make this more robust. Also, we might need to backport any changes manually to v4-dev. |
@rohit2sharma95 can you please backport it and make a PR? |
@XhmikosR Seems that this PR is not that much required to be backported as there are only two checks in the v4-dev branch 🤔 |
NP, I'll remove it from backporting :) |
Fix the warning about the complexity of the arrow function (by reducing the number of lines in that function) in the
build-plugins.js
file.See warning here: https://github.com/twbs/bootstrap/runs/2770771101#step:6:41