Skip to content

Commit

Permalink
🐛 Re-add react preset
Browse files Browse the repository at this point in the history
  • Loading branch information
luukdv committed Apr 1, 2020
1 parent a13a863 commit 9240cd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const commonPresets = ['@babel/preset-typescript']
const commonPresets = [
'@babel/preset-react',
'@babel/preset-typescript',
]

module.exports = (api) => {
return api.env('test') ? {
presets: [
'@babel/preset-env',
'@babel/preset-react',
...commonPresets,
],
} : {
Expand Down

0 comments on commit 9240cd7

Please sign in to comment.