diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-10 15:09:49 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-10 15:09:49 +0000 |
commit | 70732753863e569f95ed954ca3c41421292f912b (patch) | |
tree | f642d44c83ab951fd4581e3c46491784376b9c18 /babel.config.js | |
parent | bf593ae68b7135bf633484aa3442b7592126b1d2 (diff) | |
download | gitlab-ce-70732753863e569f95ed954ca3c41421292f912b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
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', ]; |