Socket
Socket
Sign inDemoInstall

babel-preset-c7n

Package Overview
Dependencies
259
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-c7n

Babel preset used by Choerodon


Version published
Maintainers
1
Created

Readme

Source

babel-preset-c7n

This package includes the Babel preset used by choerodon, Please refer to its documentation:

Usage

If you want to use this Babel preset in a project, you can install it with the following steps.

First, install Babel.

Then install babel-preset-c7n.

npm install babel-preset-c7n --save-dev

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["c7n-app"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

Usage with TypeScript

Make sure you have a tsconfig.json file at the root directory. You can also use the typescript option on .babelrc:

{
  "presets": [["c7n-app", { "typescript": true }]]
}

FAQs

Last updated on 14 Jul 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc