Skip to content

Instantly share code, notes, and snippets.

@alexengrig
Created January 22, 2019 19:25
Show Gist options
  • Save alexengrig/4640c17e76d93e78a61ece8e6c004df0 to your computer and use it in GitHub Desktop.
Save alexengrig/4640c17e76d93e78a61ece8e6c004df0 to your computer and use it in GitHub Desktop.
ES7 async/await
{
"presets": ["es2015"],
"plugins": [
"syntax-async-functions",
"transform-regenerator",
[
"transform-runtime",
{
"polyfill": false,
"regenerator": true
}
]
]
}
{
"dependencies": {
"babel-plugin-syntax-async-functions": "^6.1.4",
"babel-plugin-transform-regenerator": "^6.1.4",
"babel-polyfill": "^6.1.4",
"babel-preset-es2015": "^6.1.4",
"babel-plugin-transform-runtime": "^6.23.0",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment