Created
September 1, 2019 01:52
-
-
Save HerbertLim/579f67c99a328247f95cccf18f80aa77 to your computer and use it in GitHub Desktop.
.babelrc for async/await (babel 7 with 4 packages: @babel/core @babel/cli @babel/preset-env @babel/node)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"targets": { | |
"node": "10" | |
} | |
} | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://medium.com/@binyamin/enabling-async-await-and-generator-functions-in-babel-node-and-express-71e941b183e2