Skip to content

Enable Babel bugfixes setting

Lukas Eipert requested to merge leipert-enable-babel-bugfixes-setting into master

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:

  1. Safari / Webkit has a bug https://bugs.webkit.org/show_bug.cgi?id=220517 related to destructuring function arguments.
  2. @babel/preset-env will turn on transform-parameters.
  3. 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.

Edited by Lukas Eipert

Merge request reports

Loading