-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular-devkit/build-angular): re-introduce pure_getters #15751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR angular#15607 removed the `_pure_getters` optimization as it no longer has effect on the framework size. But it does have an effect on third party library. For example a simple project using `@ng-bootstrap/ng-bootstrap` goes from `444K` uncompressed with CLI `9.0.0-next.5` to `488K` with CLI `9.0.0-next.6` which introduced the removal.
Thanks! We decided to accept this PR as soon as someone from the CLI team approves it |
I've got no dog in this hunt, but I've been observing this While |
@cexbrayat can you try following @kzc suggestion of using a @kzc we were thinking of having different optimization levels to account for the projects that want to enable/disable |
@kcz Thank you for your input. I completely understand. Currently it just introduces a too big size regression across apps tested either internally at Google or externally (@kara is working on size tracking and also spotted a regression, and we think this is it). I can only talk for my apps, but we are on RxJS 6.5.3. The problem is that transitive deps might not be. These are numbers from our CI (CLI next.7 has the regression, CLI next.8 has
As v9 is focusing on Ivy release, and fwk team is doing its best to have good size numbers (on par or lower than VE), I think it would be nice to keep |
But as @kzc pointed out, an option to manually enable/disable it would be nice |
The regression using |
@filipesilva I don't think so. In my particluar example I had the same difference by using cli next.7 and next.7 manually patched with this PR (so not including the fix you mention). And the regression appeared with cli next.6, the first to remove |
@kara The Angular framework team also requested this be reverted. This needs many different library considerations before changing. Currently we just went back to the option of "what we always had", so that there are no regressive effects from this change. We have to figure out the plan forward involving everyone. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR #15607 removed the
_pure_getters
optimization as it no longer has effect on the framework size.But it does have an effect on third party library.
For example a simple project using
@ng-bootstrap/ng-bootstrap
goes from444K
uncompressed with CLI9.0.0-next.5
to488K
with CLI9.0.0-next.6
which introduced the removal.