You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I turned on minify & compress, and set the target to ES2022, so the target supports optional catch binding and the minifier can take advantage of it and remove the catch binding (e).
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
**Description:**
I think removing `!v.declared_as_catch_param` is safe, since I can't think of a bad case:
1. for the vars in the params of catch-clause, we prevent the removal if `self.options.ecma < EsVersion::Es2019 || !self.options.unused` is not satisfied.
2. for the usages or re-declarations with the same var name in the body of catch-clause, I think it's safe to remove them.
**Related issue:**
- Closes#8966
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the feature
Input:
Output:
Expected output (more minified):
I turned on minify & compress, and set the target to ES2022, so the target supports optional catch binding and the minifier can take advantage of it and remove the catch binding
(e)
.Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: