Registry / devops / gulp-es6-module-transpiler

gulp-es6-module-transpiler

JSON →
library0.2.2jsnpmunverified

Gulp plugin for the ES6 Module Transpiler, a tool that converts ES6 module syntax (import/export) to CommonJS or AMD. Version 0.2.2 is the latest, released in 2015. The plugin integrates the es6-module-transpiler into Gulp build pipelines. It supports configuration of formatters (bundle, commonjs), base path, import paths, and source maps. Key differentiators: it was part of the early ES6 module transpilation ecosystem, but it is now deprecated due to the adoption of Babel and other modern transpilers. The underlying transpiler is no longer maintained, and the plugin has not received updates since 2015.

npm install gulp-es6-module-transpiler
INSTALL
IMPORT
SIG · GULP-ES6-MODULE-TR
G
gulp-es6-module-transpiler
devopsjavascriptv0.2.2
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.

gulp-es6-module-transpiler (default)
var transpile = require('gulp-es6-module-transpiler');
import transpile from 'gulp-es6-module-transpiler';
The package uses CommonJS; ESM import may fail.
formatters
var formatters = require('gulp-es6-module-transpiler').formatters;
Access built-in formatters via this property.
transpile function (default)
var transpile = require('gulp-es6-module-transpiler');
var transpile = require('gulp-es6-module-transpiler').default;
The default export is the plugin function, not a named export.

Basic usage: pipe ES6 module files through the transpiler, outputting bundled CommonJS modules.

var gulp = require('gulp'); var transpile = require('gulp-es6-module-transpiler'); gulp.task('build', function() { return gulp.src('src/**/*.js') .pipe(transpile({ formatter: 'bundle' })) .pipe(gulp.dest('lib')); });
Debug
Known issues
deprecatedPackage is deprecated: no updates since 2015, underlying es6-module-transpiler is unmaintained.
fix
Use modern transpilers like Babel or TypeScript.
affects: >=0
gotchaOnly 'bundle' and 'commonjs' formatters are supported with es6-module-transpiler >=0.9.0.
fix
Use an AMD formatter package like es6-module-transpiler-amd-formatter for AMD output.
affects: >=0.2.0
gotchaThe plugin outputs one file per input file for formatter 'commonjs', but 'bundle' combines all files.
fix
Specify formatter explicitly: 'bundle' or 'commonjs'.
affects: >=0.2.1
breakingVersion 0.2.0 broke compatibility with es6-module-transpiler <0.5.0.
fix
Update es6-module-transpiler to >=0.5.0.
affects: 0.2.0
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler'
Missing peer dependency es6-module-transpiler.
fix
Run: npm install es6-module-transpiler
TypeError: Cannot read property 'formatter' of undefined
Invalid formatter name passed to transpile options.
fix
Use one of: 'bundle', 'commonjs', or a valid formatter object/constructor.
Upgrade
Version history
0.2.2latest on npm
Audit
Dependencies
es6-module-transpilerrequiredCore transpilation engine
gulprequiredPeer dependency for Gulp plugin
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-es6-module-transpiler — npm install gulp-es6-module-transpiler · libregistry