From d0358da099cc23845fe4198bed0df86be0dd335c Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Fri, 18 Jun 2021 12:33:38 -0400 Subject: [PATCH] specify env in babel, set loose to true --- .babelrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index efd0f4277..8c58259e6 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,14 @@ { - "presets": ["@babel/preset-env", "@babel/preset-react"], + "presets": [ + [ + "@babel/preset-env", + { + "loose": true, + "targets": "> 0.25%, not dead" + } + ], + "@babel/preset-react" + ], "plugins": [ ["@babel/plugin-proposal-optional-chaining"], [