vinyl-tf-babel

0.1.0 • Public • Published

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

/vinyl-tf-babel/

    Package Sidebar

    Install

    npm i vinyl-tf-babel

    Weekly Downloads

    58

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • stefanr