Babel preset for Behance
- We currently exclude
transform-regenerator
by default. modules
is false by default (for webpack >= 2)- Stage 3 is included
istanbul
are in thetest
environment
$ npm install --save-dev babel-preset-behance
.babelrc
{
"presets": ["behance"]
}
$ babel script.js --presets behance
require("babel-core").transform("code", {
presets: ["behance"]
});
env
({}
by default) - Pass down env options to babel-preset-env. See the babel-preset-env docs for more info.
{
"presets": ["behance", {
"env": {
"modules": "commonjs"
}
}]
}
{
"presets": ["behance", {
"env": {
"targets": {
"chrome": 55
}
}
}]
}
{
"presets": ["behance", {
"env": {
"targets": {
"node": "current"
}
}
}]
}