August 2017
Beginner
374 pages
10h 41m
English
Now webpack knows that it should compile JavaScript files with Babel, but we haven't even set up Babel yet! To do so perform the following steps:
npm install --save-dev babel-core babel-loader babel-preset-es2015npm install --save-dev babel-plugin-transform-object-rest-spread
The preceding command includes babel-core, babel-loader for webpack, and the babel-preset for ES2015. We also installed the object rest/spread plugin, as it allows us to use rest/spread syntax with objects in addition to arrays. We will learn more about the rest/spread syntax later.
Read now
Unlock full access