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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-22 13:16:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-22 13:16:36 +0300
commit23dcfa10e4cf4ebf1ec86771bacbea5d94176de0 (patch)
treebc9252f548d781f5415fc469ee7ff979dc5883f4 /babel.config.js
parent72b202723891d3824ad33256dc909a04c92b62f8 (diff)
Fix the js tests (runner)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js
index f90e662c8..4137a64ef 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -6,7 +6,8 @@ module.exports = {
[
'@babel/preset-env',
{
- useBuiltIns: 'entry',
+ modules: process.env.NODE_ENV === 'testing' ? 'commonjs' : undefined,
+ useBuiltIns: process.env.NODE_ENV === 'testing' ? 'usage' : 'entry',
corejs: 3
}
]