Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-beidou-client

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-beidou-client

Babel preset for Beidou Client.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-81.82%
Maintainers
3
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 26 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc