gulp-traceur ![Build Status](https://camo.githubusercontent.com/89921a6ef862c025b677069005c8efc2b26d9b3e2b698145a7ba70b98b95bc63/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f67756c702d747261636575722e7376673f6272616e63683d6d6173746572)
Traceur is a JavaScript.next to JavaScript-of-today compiler
Issues with the output should be reported on the Traceur issue tracker.
$ npm install --save-dev gulp-traceur
var gulp = require('gulp');
var traceur = require('gulp-traceur');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(traceur({sourceMap: true}))
.pipe(gulp.dest('dist'));
});
Options are passed through to Traceur, except for options.filename
which is set for you.
Type: boolean
Default: false
Type: string
Default: commonjs
Values: commonjs
, amd
By default, Traceur treats all files as modules. This allows use of the export
, module
and import
syntax. In this way the transformer can be used to compile ES6 for AMD or Node.js environments.
Absolute path to the Traceur runtime.js file.