Skip to content

Commit 793f6ca

Browse files
alan-agius4dgp1130
authored andcommittedMay 6, 2020
fix(@ngtools/webpack): don't emit unused file warning for.ngtypecheck.ts
`.ngtypecheck.ts` files are used by NGTSC for type-checking purposes. See: angular/angular#36211
1 parent a7cf22c commit 793f6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/ngtools/webpack/src/angular_compiler_plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ export class AngularCompilerPlugin {
633633
// Exclude the following files from unused checks
634634
// - ngfactories & ngstyle might not have a correspondent
635635
// JS file example `@angular/core/core.ngfactory.ts`.
636-
// - __ng_typecheck__.ts will never be requested.
637-
const fileExcludeRegExp = /(\.(ngfactory|ngstyle|ngsummary)\.ts|ng_typecheck__\.ts)$/;
636+
// - ngtypecheck.ts and __ng_typecheck__.ts are used for type-checking in Ivy.
637+
const fileExcludeRegExp = /(\.(ngfactory|ngstyle|ngsummary|ngtypecheck)\.ts|ng_typecheck__\.ts)$/;
638638

639639
// Start all the source file names we care about.
640640
// Ignore matches to the regexp above, files we've already reported once before, and

0 commit comments

Comments
 (0)
Please sign in to comment.