angular/packages/compiler-cli/src
Paul Gschwendtner a08863e7e0 refactor(compiler-cli): ensure FatalDiagnosticError extends Error (#54309)
This helps with the Angular CLI currently swallowing fatal diagnostic
errors in ways that are extremely difficult to debug due to workers
executing Angular compiler logic.

The worker logic, via piscina, is currently not forwarding such Angular
errors because those don't extend `Error.`

a7042ea27d/src/worker.ts (L175)

Even with access to these errors by manually forwarding errors, via
patching of the Angular CLI, there is no stack trace due to us not using
`Error` as base class for fatal diagnostic errors. This commit improves
this for future debugging and also better reporting of such errors to
our users- if we would accidentally leak one.

PR Close #54309
2024-02-07 16:39:21 +00:00
..
bin refactor(compiler-cli): drop tsickle code paths (#50602) 2023-08-17 10:23:49 -07:00
ngtsc refactor(compiler-cli): ensure FatalDiagnosticError extends Error (#54309) 2024-02-07 16:39:21 +00:00
transformers refactor(compiler-cli): add jit transform for model inputs (#54252) 2024-02-07 16:36:03 +00:00
extract_i18n.ts refactor(compiler-cli): remove dependency on minimist (#43644) 2021-10-04 17:31:03 -07:00
main.ts refactor(compiler-cli): drop tsickle code paths (#50602) 2023-08-17 10:23:49 -07:00
perform_compile.ts refactor(compiler): clean up compatibility code for old TS versions (#52099) 2023-10-10 09:37:38 -07:00
perform_watch.ts refactor(compiler-cli): update emit signature to support for strongly typed emitCallback (#47893) 2022-11-01 04:44:28 -07:00
typescript_support.ts feat(core): support TypeScript 5.3 (#52572) 2023-11-09 22:56:41 +00:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00
version_helpers.ts refactor(compiler-cli): move version number helpers out of diagnostics subfolder (#44269) 2021-12-01 10:36:30 -08:00