Détail du package

gobble-babel

babel40MIT6.0.0

Compile ES6 files with gobble and babel

gobble

readme

gobble-babel

Compile ES6 files with gobble and babel. Creates sourcemaps automatically.

Installation

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

npm i -D gobble-babel babel-preset-es2015

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'babel', options );

The options argument, if specified, is passed to babel - consult the documentation. Sourcemaps are created by default (all the relevant information is filled in by Gobble, you don't need to specify sourceMapName options etc) - if you don't want that, pass sourceMap: false.

License

MIT. Copyright 2014 Rich Harris

changelog

changelog

6.0.0

  • Update Babel

5.5.8

  • Use options.filename to pick up .babelrc, not internal helper

5.1.0

  • Respect .babelrc files (#6)

5.0.0

  • Update babel-core

4.0.1

  • Allow .es6 file extensions

...4.0.0

  • Upgrades to babel-core

1.0.3

  • Use id option for cleaner output
  • Update 6to5 to 2.10.0 for performance gains

1.0.2

  • Require 6to5-core, not 6to5 (duh)

1.0.1

  • Switch to 6to5-core (avoids node-gyp nonsense)

1.0.0

  • Update 6to5 to 2.0.0
  • Started maintaining a changelog