gulp-es6-module-jstransform

Transpile ES6 modules to CommonJS with es6-module-jstransform.

Usage no npm install needed!

<script type="module">
  import gulpEs6ModuleJstransform from 'https://cdn.skypack.dev/gulp-es6-module-jstransform';
</script>

README

gulp-es6-module-jstransform XO code style

Transpile ES6 modules to CommonJS with es6-module-jstransform.

Install

$ npm install --save-dev gulp-es6-module-jstransform

Usage

var gulp = require('gulp'),
    transform = require('gulp-es6-module-jstransform');

gulp.task('default', function () {
  return gulp.src(['src/**/*.js'])
    .pipe(transform())
    .pipe(gulp.dest('build'));
});

License

MIT © Michael Mayer