Use next generation JavaScript, today
Use next generation JavaScript, today, with Babel
Issues with the output should be reported on the Babel issue tracker.
$ npm install --save-dev gulp-babel babel-preset-es2015const gulp = ;const babel = ; gulp;See the Babel options, except for sourceMap and filename which is handled for you.
Use gulp-sourcemaps like this:
const gulp = ;const sourcemaps = ;const babel = ;const concat = ; gulp;Files in the stream are annotated with a babel property, which contains the metadata from babel.transform().
const gulp = ;const babel = ;const through = ; { return through;} gulpIf you're attempting to use features such as generators, you'll need to add transform-runtime as a plugin, to include the Babel runtime. Otherwise, you'll receive the error: regeneratorRuntime is not defined.
Install the runtime:
$ npm install --save-dev babel-plugin-transform-runtimeUse it as plugin:
const gulp = ;const babel = ; gulp;MIT © Sindre Sorhus