Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 988 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 988 Bytes

vinyl-tf-babel

A Vinyl Transformer for Babel

Version Downloads

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

Functions

transform([options]);

See BabelTransformer