babel-preset-yw
A Babel preset that extends
ES2015
preset and adds features likeasync
/await
,JSX
andFlow types
. Optimal reconfigured babel settings. Includes optional compatibility presets for targeting different environment.
Usage instructions
Installation
Install via NPM:
$ npm install -D babel-preset-yw
Basic Usage
.babelrc
(Recommended)
Via Create a .babelrc
file in your project root, and include 'yw' in your "presets" path:
.babelrc
Via CLI
$ babel script.js --presets yw
Via Node API
If you don't want to use a project-wide .babelrc
file (as above):
;
Webpack, Gulp, Browserify, etc
Follow vendor instructions and include yw
in your babel "presets" list.
Advanced Usage