Deprecated. Check out gulp-babel instead.
Transpile ES6 to ES5 with es6-transpiler
Issues with the output should be reported on the es6-transpiler issue tracker.
$ npm install --save-dev gulp-es6-transpiler
var gulp = require('gulp');
var es6transpiler = require('gulp-es6-transpiler');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(es6transpiler())
.pipe(gulp.dest('dist'));
});
Use the es6-transpiler options, except for filename
, src
, outputToConsole
, outputFilename
.
MIT © Sindre Sorhus