安装
npm install gulp-es6-transpiler
yarn add gulp-es6-transpiler
pnpm add gulp-es6-transpiler
bun add gulp-es6-transpiler
README

gulp-es6-transpiler Build Status

Transpile ES6 to ES5 with es6-transpiler

Issues with the output should be reported on the es6-transpiler issue tracker.

Install

$ npm install --save-dev gulp-es6-transpiler

Usage

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'));
});

API

es6transpiler(options)

Use the es6-transpiler options, except for filename, src, outputToConsole, outputFilename.

License

MIT © Sindre Sorhus

版本列表
1.0.1 2014-11-23
1.0.0 2014-08-14
0.2.0 2014-07-26
0.1.4 2014-07-02
0.1.3 2014-04-23
0.1.2 2014-03-14
0.1.1 2014-01-19
0.1.0 2014-01-03