> There are reports of 40kb reduction in bundle size, which is a lot.
It would be for libraries like react or vue that are already small. Angular is still big enough that even after being 40kb slimmer it's still fairly huge (I think the typical build is like ~550+kb).
Re:Angular v8.0
by jamesgeck0 on Wednesday May 29, 2019 @12:25PM
(#20042173)
It's just the first step. With both differential loading and Ivy, build sizes for a minimal app can drop close to 14kb, iirc. That's the goal, anyway.
Re:Angular v8.0
by mrmonkeyman on Wednesday May 29, 2019 @02:10PM
(#20043456)
Use any UI lib or anything of substance really and your app is going north of 500kb really fast.
Re:Angular v8.0
by marshallant on Wednesday May 29, 2019 @09:14AM
(#20039724)
Differential serving can easily be done using babel and webpack. Been doing it for awhile now.
Yes, it was possible with Angular also before, just like with other frameworks, but now this is built-in the Angular CLI build pipeline.
This means that this is now mostly transparent to developers, and taken care for us by the build pipeline without having, for example, to configure webpack and Typescript manually ourselves.
How simple is it to implement? I’ve been considering this but figured the complexity may not be worth it.
How many different builds do you emit?
Do you run into any frustrations with your user error logging tools having different stack traces?
The main feature among many is differential loading, that will load different versions of the application depending on the capabilities of the browser.
This will avoid installing polyfills without the need for them and reduce the bundle size. There are reports of 40kb reduction in bundle size, which is a lot.
More than that, this release does a lot of preparation work for Ivy in version 9, which will bring a completely new rendering layer.
Also, there is a lot of preparatory work for the introduction of Bazel in the build pipeline, which will bring us fully incremental builds (recompiling only the part of the code that changed and nothing more).