0.1.0 • Published 10 years ago
gobble-es6-modules v0.1.0
gobble-es6-modules
Tranpile ES6 modules with gobble and es6-module-transpiler.
Installation
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-es6-modules
Usage
gobblefile.js
var gobble = require( 'gobble' );
// To create a bundle, specify the 'entry point'. That module, and
// its dependencies, will be bundled into a single file with the
// same name
module.exports = gobble( 'js' ).map( 'es6-modules', {
bundle: 'app.js'
});
// To transpile to AMD modules (a one-to-one mapping between input
// files and output files), use the `type` option:
module.exports = gobble( 'js' ).map( 'es6-modules', {
type: 'amd'
});
License
MIT. Copyright 2014 Rich Harris
0.1.0
10 years ago