Transforming ES6 and JSX With Babel 6
With Babel 5, transforming ES6 and JSX into ES5 code was accomplished by including the babel-loader
. This would be configured in webpack.config.js
with something like the following:
Now, with Babel 6, the different parts of the loader have been broken out into separate plugins. These plugins need to be installed
and then included as presets
Alternatively, the presets can be specified in the project's .babelrc
file.
Last updated