gobble-es6-modules

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gobble-es6-modules

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • rich_harris