From a3271d1f48d6cd9fc421b53ba72b5fa6ac8fc9c5 Mon Sep 17 00:00:00 2001 From: hasparus Date: Wed, 19 May 2021 09:45:40 +0200 Subject: [PATCH] feat(tooling): modernize Babel config [breaking] Internet Explorer 11 is no longer supported. Babel Preset Env configuration was changed to: ``` { bugfixes: true, loose: true, modules: false, targets: '> 0.25%, not dead, not ie 11', } ``` If you're targetting old browsers, you can transpile your node_modules to ensure full control and compatibility. See Babel Preset Env docs: https://babeljs.io/docs/en/babel-preset-env --- babel.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 53318ee4b..cd827b10c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,14 @@ module.exports = { presets: [ - [require.resolve('@babel/preset-env'), { loose: true }], + [ + '@babel/preset-env', + { + bugfixes: true, + loose: true, + modules: false, + targets: '> 0.25%, not dead, not ie 11', + }, + ], '@babel/react', '@babel/preset-typescript', ],