Skip to content
Permalink
Browse files

add @babel/preset-react to the webpack config

  • Loading branch information...
nicoqh committed Jun 3, 2019
1 parent d9b86a1 commit 119047eee81af0a55b145ad494722cfd89e4ece3
Showing with 5 additions and 0 deletions.
  1. +5 −0 webpack.config.js
@@ -94,6 +94,11 @@ module.exports = env => {
// is no need to do it here.)
// 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',
],
},
}

0 comments on commit 119047e

Please sign in to comment.
You can’t perform that action at this time.