Skip to content

Commit

Permalink
feat(tooling): modernize Babel config
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
hasparus committed May 19, 2021
1 parent f32a6e8 commit a3271d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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',
],
Expand Down

0 comments on commit a3271d1

Please sign in to comment.