Skip to content

Commit

Permalink
Merge pull request #1721 from system-ui/preset-env-loose
Browse files Browse the repository at this point in the history
modernize Babel config
  • Loading branch information
hasparus committed May 22, 2021
2 parents c10d611 + 0d9b13b commit 26b80c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
14 changes: 13 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
module.exports = {
presets: ['@babel/env', '@babel/react', '@babel/preset-typescript'],
presets: [
[
'@babel/preset-env',
{
bugfixes: true,
loose: true,
modules: false,
targets: '> 0.25%, not dead, not ie 11',
},
],
'@babel/react',
'@babel/preset-typescript',
],
env: {
test: {
plugins: ['@babel/plugin-transform-runtime'],
Expand Down
1 change: 0 additions & 1 deletion packages/preset-base/babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/preset-bootstrap/babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/sidenav/babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/typography/babel.config.js

This file was deleted.

1 comment on commit 26b80c6

@vercel
Copy link

@vercel vercel bot commented on 26b80c6 May 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.