Compile ES6 files with gobble and es6-transpiler.
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-es6-transpiler
gobblefile.js
var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'es6-transpiler', options );
The options
argument is optional, and is passed to es6-transpiler (the src
property is added). See the full list of options.
MIT. Copyright 2014 Rich Harris