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-bbtContains peer dependencies: @babel/core version 7.0.1
npm i -D babel-preset-bbtUsage
Without options:
{
"presets": ["bbt"]
}or with:
{
"presets": [
["bbt", options]
]
}Options
lang- Choose language:jsorts. default:jstargets- 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:falseminify- Enable minification. default:falseroots- 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