0.1.1 • Published 10 years ago

gobble-esnext v0.1.1

Weekly downloads
6
License
-
Repository
-
Last release
10 years ago

gobble-esnext

Compile ES6 files with gobble and esnext.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-esnext

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'esnext' );

Source code

module.exports = esnext;

function esnext ( code, options ) {
  return require( 'esnext' ).compile( code );
}

esnext.defaults = {
  accept: '.js'
};

License

MIT. Copyright 2014 Rich Harris

0.1.1

10 years ago

0.1.0

10 years ago