Refresh GitLab tokens after they expire (migration phase 2)
[gitter.git] / babel.config.js
blob234dbd1ed11acbe0a98d6f385c99c2d40cd55f9c
1 'use strict';
3 const presets = ['@babel/preset-env'];
4 const plugins = ['@babel/plugin-transform-runtime'];
6 // Jest is running in node environment, so we need additional plugins
7 const isJest = !!process.env.JEST_WORKER_ID;
8 if (isJest) {
9   plugins.push('@babel/plugin-transform-modules-commonjs');
12 module.exports = {
13   sourceType: 'unambiguous', // supports mixing commonjs and es modules https://github.com/webpack/webpack/issues/4039#issuecomment-498033015
14   plugins,
15   presets