-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@ngtools/webpack): HTML and style changes in libraries is not ref… #15146
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
…lected in applications during VE AOT During AOT compilations, apart from the `d.ts` and `.js` changes we need to handle summary changes and metadata depedencies for libraries. NGC compiler doesn't allow us to purge known changed summaries, this change implements a workaround for this, which allows us to have incrementality for component resources in libraries. Fixes #13588
it('rebuilds AOT works with library HTML and CSS changes', async () => { | ||
// DISABLED_FOR_IVY - Not yet supported under Ivy | ||
if (ivyEnabled) { | ||
pending('Not supported in Ivy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not supported or just not relevant? I imagine it should just work. If it does, we should test it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s not supported because ngcc is non incremental. This should eventually work when we have dev libs in ivy mode.
// Note: NGTSC program doesn't implement 'getLibrarySummaries' method. | ||
const originalGetLibrarySummaries = oldProgram.getLibrarySummaries; | ||
|
||
oldProgram.getLibrarySummaries = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel a bit concerned with this workaround. It looks like the sort of thing that should be addressed in the VE compiler. @kara where do you think this should be addressed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, let's see what @kara thinks.
See: #17736 (comment) |
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. |
…lected in applications during VE AOT
During AOT compilations, apart from the
d.ts
and.js
changes we need to handle summary changes and metadata depedencies for libraries.NGC compiler doesn't allow us to purge known changed summaries, this change implements a workaround for this, which allows us to have incrementality for component resources in libraries.
Fixes #13588