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.
Note: You may want to use a full-blown transpiler such as gulp-traceur or gulp-6to5 instead, as those support regexpu transpilation as well as many other ES6/ES7 features.
Install
$ npm install gulp-regexpu --save-dev
Usage
var gulp = ;var regexpu = ; gulp;
Source Maps
Use gulp-sourcemaps like this:
var gulp = ;var concat = ;var regexpu = ;var sourcemaps = ; gulp;
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.