4 ms·
This release is awesome, here is a summary from the Angular team blog - https://blog.angular.io/version-8-of-angular-smaller-bundles-cli-apis-and-alignment-with
by vfc1 7y ago
This release is awesome, here is a summary from the Angular team blog - https://blog.angular.io/version-8-of-angular-smaller-bundles-cli-apis-and-alignment-with-the-ecosystem-af0261112a27 https://blog.angular.io/version-8-of-angular-smaller-bundles...
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).
- marshallant 7y agoDifferential serving can easily be done using babel and webpack. Been doing it for awhile now.
- vfc1 7y agoYes, 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.
- turadg 7y agoHow 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?
- preommr 7y ago> 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).
- jamesgeck0 7y agoIt'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.
- mrmonkeyman 7y agoUse any UI lib or anything of substance really and your app is going north of 500kb really fast.