Skip to content

Transpile ES6 modules to AMD and CommonJS with gobble and esperanto

Notifications You must be signed in to change notification settings

esperantojs/gobble-esperanto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobble-esperanto

Convert ES6 modules to AMD and CommonJS with gobble and esperanto.

Installation

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

npm i -D gobble-esperanto

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'esperanto', options );

The options object can have the following properties:

  • type (string) - 'amd', 'cjs' or 'umd'. Default to 'amd'
  • name (string) - name to use for UMD exports (required if type is umd)
  • useFilename (boolean) - if name is not supplied for UMD exports and this is true, the UMD name will be set to the filename without the extension
  • strict (boolean) - whether to use strict mode
  • sourceMap (true or 'inline') - whether to create a sourcemap

License

MIT. Copyright 2014 Rich Harris

About

Transpile ES6 modules to AMD and CommonJS with gobble and esperanto

Resources

Stars

Watchers

Forks

Packages

No packages published