I'm working on an Angular 14 application which was using AMD modules via the CDN. I recently changed the app to use ES modules instead. The app works properly but I noticed a significant change in the size of main.js from 773 KB (AMD) to 3.9 MB (ES):


I didn't make any other changes. Wondering why the size of main.js increased after converting to ES modules and how to slim it back down?
@AndyGup ?
Thanks!