Remove labeled break #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When building bundles with e.g. Parcel (which uses terser) or UglifyJS minification fails:
To circumvent this, I have replaced this particular labeled break with a
returnwhich, from what I can deduce should be 100% equivalent to the break (in this case). Both thebreakandreturnwould effectively jump out of the outerforloop and immediately return (with no value).Sorry, but if your tools can't handle JavaScript, I feel you should fix/replace the tools, not send PRs to your dependencies to avoid certain features in their code.
Pull request closed