A Vinyl Transformer for Babel that integrates Babel compilation into vinyl-fs pipelines or Gulp. Version 0.1.0 is the latest stable release. It requires babel-core as a peer dependency and supports both ES modules and CommonJS. Differentiators include a class-based transformer (`BabelTransformer`) and a convenience function (`transform`) for Gulp, aligning with vinyl transformer standards.
npm install vinyl-tf-babelVerified import paths — ran on the pinned version, not inferred.
Shows using the transform function with Gulp to compile JavaScript with Babel presets.
Install babel-core as a dependency: npm install babel-core
Use vinyl-tf-babel with babel-core 6.x or switch to a transformer like gulp-babel.
Consult Babel options documentation and validate configuration.
Ensure the stream provides Vinyl file objects (e.g., from gulp.src or vinyl-fs src).
npm install babel-core
Use `new BabelTransformer()` or `transform()` accordingly.