0.3.1 • Published 9 years ago

exhibit-builder-babel v0.3.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

babel

Exhibit.js builder plugin

Transforms JavaScript files using Babel.

$ npm install -D exhibit-builder-babel

NPM version Build Status Dependency Status devDependency Status peerDependency Status

Usage

  .use('babel', {stage: 1})

Compiles ES2015+ JavaScript to ES5.

Options

Most of the usual Babel options work as normal, except that I/O-related options won't have any effect. Also, sourceMaps defaults to true in this plugin; otherwise defaults are unchanged.

Additional options

include (string/array/function) — default: '**/*.{js,jsx,babel.js}'

Chooses which files should be compiled. Follows Exhibit’s glob convention.

replaceExt (regular expression) — default: /\.(jsx|babel\.js)$/

A regular expression to select the extension from the incoming filename. This extension will be replaced with .js when outputting compiled files, using file.replace(regex, '.js').


License

MIT

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago