First of all, the supplier includes all your dependencies.
I experimented, and these were my results:
ng build total: 6.5mb, provider: 5.5mb, main *: 0.4mbng build --aot --prod total: 2.2mb, provider 1.7mb, main *: 0.3mb
* I use lazy loading, so this will be the size of my main package and others.
In my case, my primary identifier is abbreviated. I believe that my application is too small to judge whether your increase is acceptable.
I donβt know why you donβt want to use light boot, but there is another option. There is an experimental option --build-optimizer . These were my results:
ng build --aot --prod --build-optimizer=true --vendor-chunk=true only 1.8 mb, provider 1.2mb, main *: 0.3mb
This reduced my vendor from 0.5mb. I did not see any noticeable consequences for my core, probably because it is small. The option also combines the main and vendors, so you need to add --vendor-chunk=true to create a provider.
source share