babel-preset-beidou-server
v2.0.1
Published
Babel preset for Beidou Sever.
Downloads
97
Readme
babel-preset-beidou-server
Babel preset for beidou server side.
This preset includes the following plugins:
- babel-preset-env
- babel-preset-react
- babel-preset-stage-2
Install
Install the CLI and this preset
npm install --save-dev babel-cli babel-preset-beidou-server
Make a .babelrc config file with the preset
echo '{ "presets": ["beidou-server"] }' > .babelrc
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["beidou-server"]
}
Via CLI
babel script.js --presets beidou-server
Via Node API
require('babel-core').transform('code', {
presets: ['beidou-server'],
});