Efficiently applies the minimum of transforms to run stage 4 code on Node.js 4, 6 and 8@ava/babel-preset-stage-4
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,
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.
$ npm install --save @ava/babel-preset-stage-4
@ava/stage-4 to your Babel presets.
@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.