gobble-6to5

Compile ES6 files with gobble and 6to5

MIT 7 个版本
安装
npm install gobble-6to5
yarn add gobble-6to5
pnpm add gobble-6to5
bun add gobble-6to5
README

gobble-6to5

Compile ES6 files with gobble and 6to5. Creates sourcemaps automatically.

Installation

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

npm i -D gobble-6to5

Usage

gobblefile.js

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

The options argument, if specified, is passed to 6to5 - 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

版本列表
3.0.0 2015-01-28
1.0.3 2015-01-12
1.0.2 2015-01-11
1.0.1 2015-01-11
1.0.0 2014-12-27
0.1.0 2014-11-28
0.0.1 2014-11-28