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

Use the switch statement instead of if #34215

Merged
merged 4 commits into from Jun 23, 2021
Merged

Use the switch statement instead of if #34215

merged 4 commits into from Jun 23, 2021

Conversation

rohit2sharma95
Copy link
Collaborator

@rohit2sharma95 rohit2sharma95 commented Jun 9, 2021

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

@GeoSot
Copy link
Member

GeoSot commented Jun 9, 2021

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

@alpadev
Copy link
Contributor

alpadev commented Jun 11, 2021

@GeoSot It's possible to use functions for external and globals, so I guess it should be.

@XhmikosR
Copy link
Member

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.

@XhmikosR XhmikosR added this to Inbox in v5.1.0 via automation Jun 14, 2021
@GeoSot GeoSot moved this from Inbox to Review in v5.1.0 Jun 22, 2021
v5.1.0 automation moved this from Review to Approved Jun 22, 2021
@mdo mdo merged commit 5967ebd into main Jun 23, 2021
v5.1.0 automation moved this from Approved to Done Jun 23, 2021
@mdo mdo deleted the rs/build-plugins-warning branch June 23, 2021 02:50
@XhmikosR XhmikosR added this to Inbox in v4.6.1 via automation Jun 23, 2021
@XhmikosR XhmikosR moved this from Inbox to Needs manual backport in v4.6.1 Jun 23, 2021
@XhmikosR
Copy link
Member

@rohit2sharma95 can you please backport it and make a PR?

@rohit2sharma95
Copy link
Collaborator Author

@XhmikosR Seems that this PR is not that much required to be backported as there are only two checks in the v4-dev branch 🤔

@XhmikosR
Copy link
Member

NP, I'll remove it from backporting :)

@XhmikosR XhmikosR removed this from Needs manual backport in v4.6.1 Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v5.1.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants