Gulp and Browserify - Adding Babel & Source Maps

Shane Osbourne
InstructorShane Osbourne

Share this video with your friends

Send Tweet

What is already a nice workflow using Gulp, Browserify, Watchify & Browsersync to enable auto rebuilds & live browser reloading can be further improved by adding Babelify. A simple wrapper around the popular transpiler Babel, Babelify can ‘transform’ source files as they pass through our stream to enable certain Javascript features not yet available in the Browser or Node. We end the lesson by looking at how to generate & extract sourcemaps using exorcist.

Ge
Ge
~ 6 years ago

It looks like the exorcist library is not actively maintained anymore, and the example does not work.

The gulp-sourcemap library is a more up-to-date choice for now but there are bugs with the source map.