Babel 6 was a major change in how Babel works and is configured. In this lesson, find out how to update this Angular application built with Webpack to use Babel 6.
For more information about how modules have changed in Babel 6, see this blogpost by Kent.
Super curse!
I have been trying to figure out the difference between using the 'babel-loader' as a *.js loader and using 'babel-polyfill' as first source in entry. But I can't get my head around it, what is the difference?
babel-loader
is a package allows transpiling JavaScript files using Babel and webpack. Learn more about that from my webpack videos. Specifically this one.
Learn about babel-polyfill
here: https://babeljs.io/docs/usage/polyfill/