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

babel-preset-stage-0x

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-stage-0x

Babel preset for stage 0 plugins with blacklist

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 08 Feb 2017

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