Socket
Socket
Sign inDemoInstall

babel-preset-stage-0x

Package Overview
Dependencies
61
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-stage-0x

Babel preset for stage 0 plugins with blacklist


Version published
Maintainers
1
Install size
4.48 MB
Created

Readme

Source

babel-preset-stage-0x

Babel preset for stage 0,1,2,3 + with customizable plugin blacklist.

Motivation

We were using babel preset-es2015 + stage-0 in our project. After upgrading to Node.js 7, we want to try native async/await feature. However, babel-preset-stage-0 depends on babel-preset-stage-3 that includes transform-async-to-generator and can't be excluded. Thus I create this preset.

Install

npm install --save-dev babel-preset-stage-0x

Usage

.babelrc

{
  "presets": [
    [
      "env",
      {
        "targets": {
          "node": 7
        },
        "exclude": [
          "transform-async-to-generator"
        ]
      }
    ],
    [
      "stage-0x",
      {
        "transform-async-to-generator": false,
        "transform-async-generator-functions": false
      }
    ]
  ]
}

Keywords

FAQs

Last updated on 08 Feb 2017

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