@@ -33,7 +33,7 @@ import {ParallelTaskQueue} from './execution/task_selection/parallel_task_queue'
33
33
import { SerialTaskQueue } from './execution/task_selection/serial_task_queue' ;
34
34
import { ConsoleLogger , LogLevel } from './logging/console_logger' ;
35
35
import { Logger } from './logging/logger' ;
36
- import { hasBeenProcessed , markAsProcessed } from './packages/build_marker' ;
36
+ import { hasBeenProcessed } from './packages/build_marker' ;
37
37
import { NgccConfiguration } from './packages/configuration' ;
38
38
import { EntryPoint , EntryPointJsonProperty , EntryPointPackageJson , SUPPORTED_FORMAT_PROPERTIES , getEntryPointFormat } from './packages/entry_point' ;
39
39
import { makeEntryPointBundle } from './packages/entry_point_bundle' ;
@@ -207,6 +207,12 @@ export function mainNgcc(
207
207
}
208
208
209
209
for ( const formatProperty of propertiesToProcess ) {
210
+ if ( hasBeenProcessed ( entryPoint . packageJson , formatProperty ) ) {
211
+ // The format-path which the property maps to is already processed - nothing to do.
212
+ logger . debug ( `Skipping ${ entryPoint . name } : ${ formatProperty } (already compiled).` ) ;
213
+ continue ;
214
+ }
215
+
210
216
const formatPropertiesToMarkAsProcessed = equivalentPropertiesMap . get ( formatProperty ) ! ;
211
217
tasks . push ( { entryPoint, formatProperty, formatPropertiesToMarkAsProcessed, processDts} ) ;
212
218
@@ -256,13 +262,6 @@ export function mainNgcc(
256
262
`${ formatProperty } (formatPath: ${ formatPath } | format: ${ format } )` ) ;
257
263
}
258
264
259
- // The format-path which the property maps to is already processed - nothing to do.
260
- if ( hasBeenProcessed ( packageJson , formatProperty ) ) {
261
- logger . debug ( `Skipping ${ entryPoint . name } : ${ formatProperty } (already compiled).` ) ;
262
- onTaskCompleted ( task , TaskProcessingOutcome . AlreadyProcessed ) ;
263
- return ;
264
- }
265
-
266
265
const bundle = makeEntryPointBundle (
267
266
fileSystem , entryPoint , formatPath , isCore , format , processDts , pathMappings , true ,
268
267
enableI18nLegacyMessageIdFormat ) ;
0 commit comments