Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 474 Bytes

File metadata and controls

35 lines (24 loc) · 474 Bytes

babel-plugin-transform-async-functions

Compile async functions to ES5

Installation

$ npm install babel-plugin-transform-async-functions

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-async-functions"]
}

Via CLI

$ babel --plugins transform-async-functions script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-async-functions"]
});