This short lesson extends an existing Gulp and Browserify workflow, one already set up with Watchify and Browsersync for automatic rebuilds and live reloading, by adding two more pieces: Babel support and source maps.
What's added
- Babelify, a wrapper around Babel that lets you write modern JavaScript before browsers or Node fully support it
- Exorcist, used to generate and extract source maps for easier debugging of the transformed code
The result is a build pipeline that keeps automatic rebuilds and live reloading while also letting you use newer JavaScript syntax and trace errors back to your original source files.