vinyl-tf-babel
v0.1.0
Published
A Vinyl Transformer for Babel
Downloads
488
Readme
vinyl-tf-babel
A Vinyl Transformer for Babel
Usage
babel-core
needs to be installed separately
Vinyl FS
import {src, dest} from "vinyl-fs";
import {BabelTransformer} from "vinyl-tf-babel";
src("src/**/*.js")
.pipe(new BabelTransformer())
.pipe(dest("dist"));
Gulp
import gulp from "gulp";
import {transform as babel} from "vinyl-tf-babel";
gulp.task("babel", () => {
return gulp.src("src/**/*.js")
.pipe(babel())
.pipe(gulp.dest("dist"));
});
API
BabelTransformer
new BabelTransformer([options]);
Parameters
- options
See Babel Options
Functions
transform([options]);
See BabelTransformer