Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-10 18:09:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-10 18:09:49 +0300
commit70732753863e569f95ed954ca3c41421292f912b (patch)
treef642d44c83ab951fd4581e3c46491784376b9c18 /babel.config.js
parentbf593ae68b7135bf633484aa3442b7592126b1d2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js19
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',
];