DEV Community

Discussion on: A guide to through async/await with Babel and Webpack

Collapse
 
aorcsik profile image
Antal Orcsik

According to @babel/polyfill documentation, it is now deprecated and can be replaced by adding core-js and regenerator-runtime as dependency and importing them directly to your webpack entry js file:

import "core-js/stable";
import "regenerator-runtime/runtime"; 
Enter fullscreen mode Exit fullscreen mode

I've tried it, works perfectly.