Skip to content

Commit 57abf60

Browse files
alan-agius4mgechev
authored andcommitted
fix(@ngtools/webpack): add more details to the unused files warnings (#15321)
1 parent 594343c commit 57abf60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,10 @@ export class AngularCompilerPlugin {
637637
continue;
638638
}
639639

640-
compilation.warnings.push(`${fileName} is part of the TypeScript compilation but it's unused.`);
640+
compilation.warnings.push(
641+
`${fileName} is part of the TypeScript compilation but it's unused.\n` +
642+
`Add only entry points to the 'files' or 'include' properties in your tsconfig.`,
643+
);
641644
this._unusedFiles.add(fileName);
642645
}
643646
}

0 commit comments

Comments
 (0)