compiler es6 to es5 by jsdc
https://github.com/army8735/jsdc
var gJsdc = require('gulp-jsdc');
gulp.task('jsdc', function() {
gulp.src('**/*.js')
.pipe(gJsdc())
.pipe(gulp.dest('dist'))
});
var gJsdc = require('gulp-jsdc');
gulp.task('jsdc', function() {
gulp.src('**/*.js')
.pipe(gJsdc({
define: true
}))
.pipe(gulp.dest('dist'))
});
It will wrap
define
for CommonJS module when configdefine: true