angular-docs-cn/packages/compiler-cli/ngcc/test/execution
Pete Bacon Darwin ff665b9e6a fix(ngcc): do not crash on entry-point that fails to compile (#36083)
Previously, when an entry-point contained code that caused its compilation
to fail, ngcc would exit in the middle of processing, possibly leaving other
entry-points in a corrupt state.

This change adds a new `errorOnFailedEntryPoint` option to `mainNgcc` that
specifies whether ngcc should exit immediately or log an error and continue
processing other entry-points.

The default is `false` so that ngcc will not error but continue processing
as much as possible. This is useful in post-install hooks, and async CLI
integration, where we do not have as much control over which entry-points
should be processed.

The option is forced to true if the `targetEntryPointPath` is provided,
such as the sync integration with the CLI, since in that case it is targeting
an entry-point that will actually be used in the current project so we do want
ngcc to exit with an error at that point.

PR Close #36083
2020-03-18 15:56:21 -07:00
..
cluster refactor(ngcc): abstract `onTaskCompleted` out of executors (#36083) 2020-03-18 15:56:21 -07:00
tasks/queues fix(ngcc): do not crash on entry-point that fails to compile (#36083) 2020-03-18 15:56:21 -07:00
helpers.ts refactor(ngcc): expose the TaskDependencies mapping on BaseTaskQueue (#36083) 2020-03-18 15:56:21 -07:00
single_processor_executor_spec.ts refactor(ngcc): abstract `onTaskCompleted` out of executors (#36083) 2020-03-18 15:56:21 -07:00
utils_spec.ts refactor(ngcc): expose the TaskDependencies mapping on BaseTaskQueue (#36083) 2020-03-18 15:56:21 -07:00