jsx-transform for Gulp.
npm install gulp-jsx
var gulp = require('gulp');
var jsx = require('gulp-jsx');
gulp.task('build', function() {
return gulp.src('views/**/*.js')
.pipe(jsx())
.pipe(gulp.dest('dist'));
});
See jsx-transform for options and other usage information.
Options are passed to jsx-transform.
Type: RegExp
or String
Default: /jsx?$/i
Only parses files with pathnames that match this value.