0.1.0 • Published 7 years ago
babel-preset-bbt v0.1.0
babel-preset-bbt
Babel preset used by BlackBird Team
Install
npm install --save-dev @babel/core babel-preset-bbt
Contains peer dependencies: @babel/core version 7.0.1
npm i -D babel-preset-bbt
Usage
Without options:
{
"presets": ["bbt"]
}
or with:
{
"presets": [
["bbt", options]
]
}
Options
lang
- Choose language:js
orts
. default:js
targets
- You may override our default list of targets by providing your own targets More about targetsenv
- Provide options forpreset-env
.
CAUTIONS options.env.targets
will overrides from options.targets
if options.targets != undefined
react
- Enable react preset. default:false
minify
- Enable minification. default:false
roots
- You can supply an array of the above. The plugin will try each prefix/suffix pair in the order they are defined. More about roots
Includes
Common
preset-env\ preset-react\ preset-minify
plugin-root-import\ plugin-proposal-class-properties