diff options
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js index e3db4dcbc9a..78d14095b0b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -41,6 +41,11 @@ if (BABEL_ENV === 'karma' || BABEL_ENV === 'coverage') { // Jest is running in node environment if (BABEL_ENV === 'jest') { plugins.push('@babel/plugin-transform-modules-commonjs'); + /* + without the following, babel-plugin-istanbul throws an error: + https://gitlab.com/gitlab-org/gitlab-ce/issues/58390 + */ + plugins.push('babel-plugin-dynamic-import-node'); } module.exports = { presets, plugins }; |