Deprecated
Deprecated as Traceur is unmaintained. Check out gulp-babel
instead.
gulp-traceur
Traceur
is a JavaScript.next to JavaScript-of-today compiler
Issues with the output should be reported on the Traceur
issue tracker.
Install
$ npm install --save-dev gulp-traceur
Usage
const gulp = ;const traceur = ; gulp;
API
traceur([options])
See the Traceur
options.
options
modules
Type: string
Default: commonjs
Values: See traceur modules
option
By default, gulp-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 ES2015 for AMD or Node.js environments.
traceur.RUNTIME_PATH
Absolute path to the Traceur runtime.js file.
Source Maps
Use gulp-sourcemaps like this:
const gulp = ;const sourcemaps = ;const traceur = ;const concat = ; gulp;
License
MIT © Sindre Sorhus