diff options
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js index ea0f75a41ec..64898bfdf50 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', }, }, ], @@ -22,6 +37,8 @@ const plugins = [ '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', '@babel/plugin-proposal-private-methods', + // See: https://gitlab.com/gitlab-org/gitlab/-/issues/229146 + '@babel/plugin-transform-arrow-functions', 'lodash', ]; |