babel-plugin-transform-async-functions

Compile async functions to ES5

Usage no npm install needed!

<script type="module">
  import babelPluginTransformAsyncFunctions from 'https://cdn.skypack.dev/babel-plugin-transform-async-functions';
</script>

README

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