Here are the steps I took to create an example Angular app:
npm i -g @angular/cli(Installed Angular 11.2)ng new foo- Opt in for SASS, Angular Router, and analytics
cd foo- Replace the contents of
.browserslistrcwithlast 1 Chrome version. (Runningnpx browserslistthen prints onlychrome 89, as expected.) ng build --prod
Here is the result:
$ ng build --prod
✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.
Initial Chunk Files | Names | Size
main.feaf6a85348d901578d8.js | main | 211.52 kB
polyfills.00096ed7d93ed26ee6df.js | polyfills | 35.98 kB
runtime.7b63b9fd40098a2e8207.js | runtime | 1.45 kB
styles.09e2c710755c8867a460.css | styles | 0 bytes
| Initial Total | 248.95 kB
Build at: 2021-03-16T14:41:16.954Z - Hash: 57aec26226ae3eb0ee1b - Time: 12529ms
I'm surprised that it compiles 36kb of polyfills when all I'm supporting is the latest version of Chrome. To my way of thinking, this should require few if any polyfills.
What do these 36kb do? It's hard for me to tell because the file is minified.