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
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel script.js --presets beidou-server
Via Node API
;