Registry / devops / gulp-babel-transpiler

gulp-babel-transpiler

JSON →
library0.1.1jsnpmunverified

Gulp plugin to transpile ES6 (ES2015) files to ES5 using babel-core. Current version 0.1.1, no known release cadence. Key differentiator: wraps babel-core as a Gulp pipeline plugin, but is very early and unmaintained. Consider using @babel/gulp-babel instead, as this package is essentially abandoned and relies on outdated babel-core 5.x.

npm install gulp-babel-transpiler
INSTALL
IMPORT
SIG · GULP-BABEL-TRANSPI
G
gulp-babel-transpiler
devopsjavascriptv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (transpile)
var transpile = require('gulp-babel-transpiler');
import transpile from 'gulp-babel-transpiler';
Package does not support ESM; only CommonJS. Named exports are also not available; the default export is the function itself.
babel (pipe usage)
.pipe(babel())
.pipe(babel({ presets: ['es2015'] }))
Options passed to babel-core, but in this version babel-core 5.x does not use presets. Options are passed directly to babel-core's transform method.

Basic Gulp task using gulp-babel-transpiler to transpile .js files from es6 to es5_app directory.

var gulp = require('gulp'); var babel = require('gulp-babel-transpiler'); gulp.task('default', function() { return gulp.src('./es6/*.js') .pipe(babel()) .pipe(gulp.dest('./es5_app')); });
Debug
Known issues
deprecatedPackage uses babel-core 5.x which is no longer maintained. Use @babel/gulp-babel with babel 6+ and presets.
fix
Migrate to @babel/gulp-babel and @babel/preset-env.
affects: >=0.0.1
gotchaNo options for presets or plugins; all options are passed directly to babel-core 5.x transform, which has different API compared to babel 6+.
fix
If you need modern Babel features, switch to @babel/gulp-babel.
affects: >=0.0.1
breakingPackage has no named exports; require('gulp-babel-transpiler') returns a single function. Do not destructure or import named.
fix
Use const babel = require('gulp-babel-transpiler');
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'babel-core'
babel-core is a peer dependency not listed in package.json, but required at runtime.
fix
npm install babel-core --save-dev
babel is not a function
Trying to use named import from ESM or destructure require.
fix
Use 'const babel = require('gulp-babel-transpiler');'
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
gulprequiredPlugin requires Gulp's stream pipeline
babel-corerequiredTranspilation core; uses babel-core v5.x (outdated)
Agent activity
2 hits · last 30 days
node
2
Resources
gulp-babel-transpiler — npm install gulp-babel-transpiler · libregistry