Skip to content

Commit

Permalink
fix(@ngtools/webpack): don't emit unused file warning for`.ngtypechec…
Browse files Browse the repository at this point in the history
…k.ts`

`.ngtypecheck.ts` files are used by NGTSC for type-checking purposes.

See: angular/angular#36211
  • Loading branch information
alan-agius4 authored and dgp1130 committed May 6, 2020
1 parent a7cf22c commit 793f6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ngtools/webpack/src/angular_compiler_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ export class AngularCompilerPlugin {
// Exclude the following files from unused checks
// - ngfactories & ngstyle might not have a correspondent
// JS file example `@angular/core/core.ngfactory.ts`.
// - __ng_typecheck__.ts will never be requested.
const fileExcludeRegExp = /(\.(ngfactory|ngstyle|ngsummary)\.ts|ng_typecheck__\.ts)$/;
// - ngtypecheck.ts and __ng_typecheck__.ts are used for type-checking in Ivy.
const fileExcludeRegExp = /(\.(ngfactory|ngstyle|ngsummary|ngtypecheck)\.ts|ng_typecheck__\.ts)$/;

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

0 comments on commit 793f6ca

Please sign in to comment.