vinyl-tf-babel

A Vinyl Transformer for Babel

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vinyl-tf-babel
000.1.07 years ago7 years agoMinified + gzip package size for vinyl-tf-babel in KB

Readme

vinyl-tf-babel
A Vinyl Transformer for Babel
!Versionnpm-imgnpm-url !Downloadsdlm-imgnpm-url

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