fix(ivy): ensure that changes to component resources trigger incremental builds (#30954)
Optimizations to skip compiling source files that had not changed did not account for the case where only a resource file changes, such as an external template or style file. Now we track such dependencies and trigger a recompilation if any of the previously tracked resources have changed. This will require a change on the CLI side to provide the list of resource files that changed to trigger the current compilation by implementing `CompilerHost.getModifiedResourceFiles()`. Closes #30947 PR Close #30954
This commit is contained in:

committed by
Kara Erickson

parent
dc613b336d
commit
48def92cad
@ -281,6 +281,12 @@ export interface CompilerHost extends ts.CompilerHost {
|
||||
* rather than by path. See http://requirejs.org/docs/whyamd.html#namedmodules
|
||||
*/
|
||||
amdModuleName?(sf: ts.SourceFile): string|undefined;
|
||||
|
||||
/**
|
||||
* Get the absolute paths to the changed files that triggered the current compilation
|
||||
* or `undefined` if this is not an incremental build.
|
||||
*/
|
||||
getModifiedResourceFiles?(): Set<string>|undefined;
|
||||
}
|
||||
|
||||
export enum EmitFlags {
|
||||
|
Reference in New Issue
Block a user