Skip to content

Commit

Permalink
perf(babelrc): enable externalHelpers option for babel-plugin-transfo…
Browse files Browse the repository at this point in the history
…rm-async-to-promises (#490)
  • Loading branch information
henryqdineen authored May 14, 2020
1 parent 11456a8 commit 99fd145
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
],
"@babel/react"
],
"plugins": ["babel-plugin-transform-async-to-promises"],
"plugins": [
[
"babel-plugin-transform-async-to-promises",
{
externalHelpers: true
}
]
],
"env": {
"test": {
"presets": [
Expand All @@ -22,7 +29,8 @@
"exclude": ["@babel/plugin-transform-regenerator"]
}
]
]
],
"plugins": ["babel-plugin-transform-async-to-promises"]
}
}
}

0 comments on commit 99fd145

Please sign in to comment.