gulp-babel
Use next generation JavaScript, today, with Babel.
Installation
npm install --save-dev gulp-babel @babel/core @babel/preset-env
Configuration
const gulp = require('gulp');
const babel = require('gulp-babel');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(babel())
.pipe(gulp.dest('dist'))
);