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"]
1// In package.json add
2{
3...
4 "browserslist": {
5 "production": [
6 ">0.2%",
7 "not dead",
8 "not op_mini all"
9 ],
10 "development": [
11 "last 1 chrome version",
12 "last 1 firefox version",
13 "last 1 safari version"
14 ]
15 }
16 ...