// yarn add @babel/plugin-transform-runtime --dev
// yarn add @babel/runtime
//.babelrc
"plugins": [
["@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
],
//add code below to the top of your main JavaScript file:
import 'regenerator-runtime/runtime'
"plugins": [
["@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
],
# First install the package
yarn add babel-polyfill --dev
# or
npm add babel-polyfill --dev
# Then require it in the angular.json
"scripts": ["node_modules/babel-polyfill/dist/polyfill.min.js"]