babel-preset-raty
v0.0.1
Published
Babel preset including es2015+ react flow
Downloads
5
Readme
babel-preset-raty
Babel preset including es2015, es2016, es2017, react, flow
Install
npm install --save-dev babel-preset-raty
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["raty"]
}
Via CLI
babel script.js --presets raty
Via Node API
require("babel-core").transform("code", {
presets: ["raty"]
});
Options
es2015
boolean
, defaults to true
.
Toggles including plugins from the es2015 preset.
{
"presets": [
["raty", {
"es2015": false
}]
]
}
You can also pass options down to the es2015
preset.
{
"presets": [
["raty", {
"es2015": {
"modules": false
}
}]
]
}
Note: This also works for the other preset-year options below.
es2016
boolean
, defaults to true
.
Toggles including plugins from the es2016 preset.
es2017
boolean
, defaults to true
.
Toggles including plugins from the es2017 preset.
react
boolean
, defaults to true
.
Toggles including plugins from the react preset.