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>2022-06-15 15:09:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-15 15:09:10 +0300
commit3e0c035fe3a10436be36b4e22a4986479821b8e4 (patch)
treeca812645f554800b2b3d828c48d7da7ed1ae50c2 /babel.config.js
parent74e6480896d7fd478930426460021883ba3b83a4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/babel.config.js b/babel.config.js
index a545d8e6062..6838df3ad84 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,7 +1,5 @@
const coreJSVersion = require('./node_modules/core-js/package.json').version;
-const BABEL_ENV = process.env.BABEL_ENV || process.env.NODE_ENV || null;
-
let presets = [
[
'@babel/preset-env',
@@ -15,7 +13,6 @@ let presets = [
// include stage 3 proposals
const plugins = [
- '@babel/plugin-syntax-import-meta',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-private-methods',
@@ -28,26 +25,9 @@ const plugins = [
'lodash',
];
-// add code coverage tooling if necessary
-if (BABEL_ENV === 'coverage') {
- plugins.push([
- 'babel-plugin-istanbul',
- {
- exclude: ['app/assets/javascripts/locale/**/app.js'],
- },
- ]);
-}
-
-// Jest is running in node environment, so we need additional plugins
+// Jest is running in node environment
const isJest = Boolean(process.env.JEST_WORKER_ID);
if (isJest) {
- plugins.push('@babel/plugin-transform-modules-commonjs');
- /*
- without the following, babel-plugin-istanbul throws an error:
- https://gitlab.com/gitlab-org/gitlab-foss/issues/58390
- */
- plugins.push('babel-plugin-dynamic-import-node');
-
presets = [
[
'@babel/preset-env',