Package Exports
- gulp-regexpu
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-regexpu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-regexpu

gulp-regexpu is a Gulp plugin to transpile ES6 Unicode regular expressions to ES5 with regexpu.
Issues with the output should be reported on the regexpu issue tracker.
Install
$ npm install gulp-regexpu --save-dev
Usage
var gulp = require('gulp');
var regexpu = require('gulp-regexpu');
gulp.task('default', function() {
return gulp.src('src/app.js')
.pipe(regexpu())
.pipe(gulp.dest('dist'));
});
Source Maps
Use gulp-sourcemaps like this:
var gulp = require('gulp');
var concat = require('gulp-concat');
var regexpu = require('gulp-regexpu');
var sourcemaps = require('gulp-sourcemaps');
gulp.task('default', function() {
return gulp.src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(regexpu())
.pipe(concat('all.js'))
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist'));
});
Notes
Thanks to Sindre Sorhus, whose many great examples of Gulp plugins made it very easy to create this one. 🍺
Author
Mathias Bynens |
License
gulp-regexpu is available under the MIT license.