babel-preset-beidou-server

2.0.1 • Public • Published

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'],
});

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-beidou-server

Weekly Downloads

6

Version

2.0.1

License

MIT

Unpacked Size

4.69 kB

Total Files

5

Last publish

Collaborators

  • devrsi0n
  • njugray
  • weichunpeng