Skip to content

Commit

Permalink
chore: enable loose transformations in @babel/preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed May 6, 2021
1 parent 289ee1c commit c2cb7b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
presets: ['@babel/env', '@babel/react', '@babel/preset-typescript'],
presets: [
[require.resolve('@babel/preset-env'), { loose: true }],
'@babel/react',
'@babel/preset-typescript',
],
env: {
test: {
plugins: ['@babel/plugin-transform-runtime'],
Expand Down

0 comments on commit c2cb7b1

Please sign in to comment.