Enable Babel bugfixes setting
What does this MR do and why?
This rather new setting (ehrm, 3 years old) is well explained in the release blog post: https://babeljs.io/blog/2020/03/16/7.9.0#babelpreset-envs-bugfixes-option-11083
In our code base it has the following effect:
- Safari / Webkit has a bug https://bugs.webkit.org/show_bug.cgi?id=220517 related to destructuring function arguments.
-
@babel/preset-env
will turn ontransform-parameters
. - With the bugfixes setting enabled, it will turn on
bugfix-safari-id-destructuring-collision-in-function-expression
instead which only transpiles the specific bug case which we might not even have in our code base
Screenshots or screen recordings
N/A
How to set up and validate locally
N/A
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Lukas Eipert