@dinoboff/babel-preset-stage-4

Efficiently applies the minimum of transforms to run stage 4 code on Node.js 4, 6 and 8

@ava/babel-preset-stage-4

Babel preset for use with AVA

Aspires to bring ECMAScript stage 4 proposals to AVA's test and helper files.

Efficiently applies the minimum of transforms to run stage 4 code on Node.js 4, 6 and 8.

Built-ins are not added or extended, so features like Proxies, Array.prototype.includes or String.prototype.padStart will only be available if the Node.js version running the tests supports it. Consult node.green for details.

Sometimes a particular feature is mostly implemented in Node.js. In that case transforms are not applied. This applies to new.target and iterator closing, which are not supported in Node.js 4 even though classes and iterators are.

Install

$ npm install --save @ava/babel-preset-stage-4

Usage

Add @ava/stage-4 to your Babel presets.

Require @ava/babel-preset-stage-4/package-hash to get a combined hash for the installed version of the preset, as well as the plugins that were selected for the active Node.js version.

Repository

avajs/babel-preset-stage-4


上一篇:@dlghq/babel-preset-dialog
下一篇:@ava/babel-preset-stage-4

相关推荐

官方社区

扫码加入 JavaScript 社区