From 9aa778e843a62e6eb3d73a39a80553a28c84b5bf Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 29 Apr 2020 21:28:02 +0300 Subject: [PATCH] refactor(ngcc): move "Compiling" log message before starting work on a task (#36626) Previously, the "Compiling " log message was printed before starting to analyze and transform files, but after creating the `EntryPointBundle` (which includes creating the TS program). Since creating the `EntryPointBundle` involves some work, it is more accurate to move the log message before creating the bundle. PR Close #36626 --- .../ngcc/src/execution/create_compile_function.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts b/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts index 3eab5c296f..0998129b4c 100644 --- a/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts +++ b/packages/compiler-cli/ngcc/src/execution/create_compile_function.ts @@ -57,12 +57,12 @@ export function getCreateCompileFn( `${formatProperty} (formatPath: ${formatPath} | format: ${format})`); } + logger.info(`Compiling ${entryPoint.name} : ${formatProperty} as ${format}`); + const bundle = makeEntryPointBundle( fileSystem, entryPoint, formatPath, isCore, format, processDts, pathMappings, true, enableI18nLegacyMessageIdFormat); - logger.info(`Compiling ${entryPoint.name} : ${formatProperty} as ${format}`); - const result = transformer.transform(bundle); if (result.success) { if (result.diagnostics.length > 0) {