babel-preset-behance
v23.0.0
Published
Babel preset for Behance
Downloads
151
Maintainers
Keywords
Readme
babel-preset-behance
Babel preset for Behance
modules
is false by default (for webpack >= 2)useBuiltIns
is set toentry
instead offalse
- Stage 3 (
loose
) is included
Install
$ npm install --save-dev babel-preset-behance
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["behance"]
}
Via CLI
$ babel script.js --presets behance
Via Node API
require("babel-core").transform("code", {
presets: ["behance"]
});
Options
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"
}
}
}]
}