diff --git a/babel.config.js b/babel.config.js index 49863f888..e23d227ee 100644 --- a/babel.config.js +++ b/babel.config.js @@ -13,7 +13,7 @@ module.exports = function babelConfig(api) { "@babel/preset-env", { useBuiltIns: false, // use the full lib to make sure vendor bundle stays stable - targets: "cover 95%", + targets: !api.env('test') ? "cover 95%" : { node: 'current' }, bugfixes: true } ], @@ -30,7 +30,7 @@ module.exports = function babelConfig(api) { plugins.push("react-hot-loader/babel"); } if (process.env.BABEL_INCLUDE_TIMING_FUNCTIONS === "false") { - plugins.push(["strip-function-call", {strip: ["timerStart", "timerEnd"]}]); + plugins.push(["strip-function-call", { strip: ["timerStart", "timerEnd"] }]); } api.cache(true); return {