babel-preset-andari-react
Babel preset for Andari React Development.
Install
$ npm install --save-dev babel-preset-andari-react
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["andari-react"]
}
Via CLI
$ babel script.js --presets andari-react
Via Node API
require("babel-core").transform("code", {
presets: ["andari-react"]
});
Targeting Environments
This module uses babel-preset-env to target specific environments.
Please refer to babel-preset-env#targets for a list of available options.
For a list of browsers please see browserlist.
You may override our default list of targets by providing your own targets
key.
{
"presets": [["andari-react", {
"targets": {
"chrome": 50,
"explorer": 11,
"firefox": 45
}
}]]
}
The following transpiles only for Node v6.
{
"presets": [["andari-react", {
"targets": {
"node": 6
}
}]]
}
You may override our default debug option by providing your own debug
key.
{
"presets": [["andari-react", {
"debug": true
}]]
}