Babel Issue (async/await): regeneratorRuntime is not defined

Babel 7 Users

I had some trouble getting around this since most information was for prior babel versions. For Babel 7, install these two dependencies:

npm install --save @babel/runtime 
npm install --save-dev @babel/plugin-transform-runtime

And, in .babelrc, add:

    "presets": ["@babel/preset-env"],
    "plugins": [
    • Thanks for this one bro!
    • How we can do it without .babelrc (just using webpack config file)
    • Thanks! this works. What is the security/production implication of having @babel/runtime as a dependency instead of a devDependency?