gobble-es6-transpiler

Compile ES6 files with gobble and es6-transpiler

MIT 3 个版本
安装
npm install gobble-es6-transpiler
yarn add gobble-es6-transpiler
pnpm add gobble-es6-transpiler
bun add gobble-es6-transpiler
README

gobble-es6-transpiler

Compile ES6 files with gobble and es6-transpiler.

Installation

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

npm i -D gobble-es6-transpiler

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'es6-transpiler', options );

The options argument is optional, and is passed to es6-transpiler (the src property is added). See the full list of options.

Additionally, you can pass an onError function. If present, this function will be called with any errors that occur; otherwise, an exception will be raised.

License

MIT. Copyright 2014 Rich Harris

版本列表
0.1.2 2015-01-12
0.1.1 2014-11-25
0.1.0 2014-08-21