The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Updating Babel 5 to 6

Updating Babel 5 to 6

5:00
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](https://medium.com/@kentcdodds/misunderstanding-es6-modules-upgrading-babel-tears-and-a-solution-ad2d5ab93ce0) by Kent.
Watch this lesson now
Avatar
egghead.io

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.

Avatar
Ross

What does the stage-2 preset do exactly? The docs page for it is pretty barren and Googling has turned up nothing.

I have an app up and running with just the es2015 preset, so I'm curious about what stage-2 does.

In reply to egghead.io
Avatar
Joel

What does the stage-2 preset do exactly? The docs page for it is pretty barren and Googling has turned up nothing.

stage-2 refers to the current stage of the proposal in the inclusion process into the ECMAScript20xx specification. stage-0 is a raw proposal that is experimental. stage-2 is well on its way to becoming part of the language.

In reply to Ross
Avatar
Jesús García

Super curse!

Avatar
Ola

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?

Avatar
Kent C.

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/

In reply to Ola
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?