From f1842ec53f50cb4c33c8f58296d75f789d8e3c07 Mon Sep 17 00:00:00 2001 From: Federico Carboni <48333714+FedericoCarboni@users.noreply.github.com> Date: Sat, 23 Dec 2023 18:54:30 +0100 Subject: [PATCH] update babel config --- babel.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/babel.config.js b/babel.config.js index 1bcd0ac..958a4ef 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,8 +1,6 @@ -module.exports = (api) => ({ +// For testing with Jest +module.exports = { presets: [['@babel/preset-env', { - targets: { - node: 'current', - esmodules: !api.env('NODE_TEST'), - }, + targets: {node: 'current'}, }]], -}); +};