1// yarn add @babel/plugin-transform-runtime --dev
2// yarn add @babel/runtime
3
4//.babelrc
5
6"plugins": [
7 ["@babel/plugin-transform-runtime",
8 {
9 "regenerator": true
10 }
11 ]
12 ],
13
1# First install the package
2yarn add babel-polyfill --dev
3# or
4npm add babel-polyfill --dev
5# Then require it in the angular.json
6"scripts": ["node_modules/babel-polyfill/dist/polyfill.min.js"]