diff --git a/babel.config.js b/babel.config.js index ea0f75a41ec854387ea9f67d75447aca575c1e5d..67561f55296cbc6e4a5f127f18e1ae4d9e48bb12 100644 --- a/babel.config.js +++ b/babel.config.js @@ -9,8 +9,23 @@ let presets = [ useBuiltIns: 'usage', corejs: { version: 3, proposals: true }, modules: false, + /** + * This list of browsers is a conservative first definition, based on + * https://docs.gitlab.com/ee/install/requirements.html#supported-web-browsers + * with the following reasoning: + * + * - Edge: Pick the last two major version before the Chrome switch + * - Rest: We should support the latest ESR of Firefox: 68, because it used quite a lot. + * For the rest, pick browser versions that have a similar age to Firefox 68. + * + * See also this follow-up epic: + * https://gitlab.com/groups/gitlab-org/-/epics/3957 + */ targets: { - ie: '11', + chrome: '73', + edge: '17', + firefox: '68', + safari: '12', }, }, ], diff --git a/changelogs/unreleased/leipert-ie11-babel-preset-env.yml b/changelogs/unreleased/leipert-ie11-babel-preset-env.yml new file mode 100644 index 0000000000000000000000000000000000000000..d57317b3f90f7b58003edb651adea0fae20820b1 --- /dev/null +++ b/changelogs/unreleased/leipert-ie11-babel-preset-env.yml @@ -0,0 +1,5 @@ +--- +title: Remove Internet Explorer 11 from babel transpilation +merge_request: 36840 +author: +type: removed