Skip to content

Latest commit

 

History

History
 
 

babel-plugin-transform-async-functions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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"]
});