Skip to content

Commit

Permalink
add @babel/preset-react to the webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoqh committed Jun 3, 2019
1 parent d9b86a1 commit 119047e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ module.exports = env => {
// is no need to do it here.) // is no need to do it here.)
// targets: "", // targets: "",
}], }],

// The react preset includes several plugins that are required to write
// a React app. For example, it transforms JSX:
// <div> -> React.createElement('div')
'@babel/preset-react',
], ],
}, },
} }
Expand Down

0 comments on commit 119047e

Please sign in to comment.