Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gobble-esperanto

gobblejs9MIT0.3.0

Transpile ES6 modules to AMD and CommonJS with gobble and esperanto

gobble

readme

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

changelog

changelog

0.3.0

  • Update to esperanto 0.7.0

0.2.4

  • Update to esperanto 0.6.0

0.2.2

  • Add useFilename option

0.2.1

  • Support sourcemaps and UMD exports

0.2.0

  • Use esperanto 0.4.0

0.1.0

  • First release