Skip to content

Commit ff7b995

Browse files
committed
fix(@ngtools/webpack): log ngcc compilation messages
Fix angular#14194
1 parent 8089a3f commit ff7b995

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/ngtools/webpack/src/ngcc_processor.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export class NgccProcessor {
104104
}
105105

106106
class NgccLogger implements Logger {
107+
private alreadyProcessMsg = 'The target entry-point has already been processed';
107108
constructor(
108109
private readonly compilationWarnings: (Error | string)[],
109110
private readonly compilationErrors: (Error | string)[],
@@ -112,7 +113,12 @@ class NgccLogger implements Logger {
112113

113114
debug(..._args: string[]) { }
114115

115-
info(..._args: string[]) { }
116+
info(..._args: string[]) {
117+
const msg = _args.join(' ');
118+
if (!msg.includes(this.alreadyProcessMsg)) {
119+
process.stderr.write(`\n${msg}\n`);
120+
}
121+
}
116122

117123
warn(...args: string[]) {
118124
this.compilationWarnings.push(args.join(' '));

0 commit comments

Comments
 (0)