
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gulp-traceur
Advanced tools
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: 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 ES6 for AMD or Node.js environments.
Absolute path to the Traceur runtime.js file.
Use gulp-sourcemaps like this:
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var traceur = require('gulp-traceur');
var concat = require('gulp-concat');
gulp.task('default', function () {
return gulp.src('src/*.js')
.pipe(sourcemaps.init())
.pipe(traceur())
.pipe(concat('all.js'))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist'));
});
MIT © Sindre Sorhus
FAQs
Traceur is a JavaScript.next to JavaScript-of-today compiler
The npm package gulp-traceur receives a total of 54 weekly downloads. As such, gulp-traceur popularity was classified as not popular.
We found that gulp-traceur demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.