From fcbe654f14b7645f96e427f56868b13efb5328d1 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 11 Oct 2022 08:48:16 -0600 Subject: [PATCH] Use ignoreToPrimitiveHint instead of loose --- babel.config.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/babel.config.js b/babel.config.js index 2001954d..99de653b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,20 +1,20 @@ module.exports = { - "plugins": [ + "assumptions": { + "noDocumentAll": true, + "pureGetters": true, + "iterableIsArray": true, + "ignoreToPrimitiveHint": true + }, + "presets": [ [ - "@babel/plugin-transform-template-literals", + "@babel/preset-env", { - "loose": true - } - ] - ], - 'presets': [ - [ - '@babel/preset-env', - { - 'targets': { - 'esmodules': true, + "targets": { + "esmodules": true, }, - }, + useBuiltIns: "entry", + corejs: "3.25.1" + } ], ], };