babel-preset-beidou-client

2.1.0 • Public • Published

babel-preset-beidou-client

This preset includes the following plugins:

  • @babel/preset-env
  • @babel/preset-react
  • @babel/preset-typescript [optional]
  • @babel/plugin-proposal-function-sent
  • @babel/plugin-proposal-decorators
  • @babel/plugin-proposal-class-properties
  • @babel/plugin-proposal-export-namespace-from
  • @babel/plugin-proposal-numeric-separator
  • @babel/plugin-proposal-throw-expressions
  • babel-plugin-add-module-exports
  • react-hot-loader/babel [only for dev]

Install

Install the preset

npm install --save-dev babel-preset-beidou-client

Configuration

This preset support dynamic compile browser targets, set browserslist in your package.json

{
  "browserslist": ["> 1%", "last 2 versions"]
}

Or using default browserslist ['>1%', 'last 4 versions', 'not ie < 9'].

Config in .babelrc

{
  "presets": [["babel-preset-beidou-client", { "typescript": true }]]
}

Options

  • typescript: enable typescript
  • env: config passed to preset-env

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.09latest
2.0.0-beta.01next

Version History

VersionDownloads (Last 7 Days)Published
2.1.09
2.0.11
2.0.01
2.0.0-beta.01
2.0.0-alpha.11
2.0.0-alpha.01
1.1.02
1.0.91
1.0.81
1.0.01
1.0.0-beta.31
1.0.0-beta.21
1.0.0-beta.11
1.0.0-beta.01
1.0.0-alpha.51
1.0.0-alpha.41
1.0.0-alpha.31
1.0.0-alpha.21
1.0.0-alpha.11
1.0.0-alpha.02
1.0.0-alpha.ca3d46431
0.1.04
0.0.51
0.0.31
0.0.22

Package Sidebar

Install

npm i babel-preset-beidou-client

Weekly Downloads

39

Version

2.1.0

License

MIT

Unpacked Size

7.09 kB

Total Files

5

Last publish

Collaborators

  • devrsi0n
  • njugray
  • weichunpeng