Skip to content

Instantly share code, notes, and snippets.

@waldrupm
Created August 4, 2019 16:47
Show Gist options
  • Save waldrupm/8e4550f53165eec13da2dffe18543ecd to your computer and use it in GitHub Desktop.
Save waldrupm/8e4550f53165eec13da2dffe18543ecd to your computer and use it in GitHub Desktop.
Solution to Babel / Webpack hoisting of async functions, causing RegeneratorRuntime errors.
{
"presets": [
["@babel/env",{"targets": {"node": "current"}}],
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment