diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-12-22 13:16:36 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-12-22 13:16:36 +0300 |
commit | 23dcfa10e4cf4ebf1ec86771bacbea5d94176de0 (patch) | |
tree | bc9252f548d781f5415fc469ee7ff979dc5883f4 /babel.config.js | |
parent | 72b202723891d3824ad33256dc909a04c92b62f8 (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.js | 3 |
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 } ] |