mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Running the Angular compiler with declaration-only emission is dangerous because Angular does not yet support this mode as it relies on the Ivy compilation which does not run in this mode In the best case, everything works fine as incidentally there's no difference in the emitted type declarations (e.g. this is the case for TS files containing no Angular annotations or only `@Injectable` annotations). In the worst case, compilation silently fails in that the compilation succeeds but the resulting type declarations are missing the Angular type information and are therefore incomplete. This happens for all components, directives and modules. BREAKING CHANGE: The Angular compiler now produces an error when the the `emitDeclarationOnly` TS compiler option is enabled as this mode is not supported. PR Close #61609 |
||
|---|---|---|
| .. | ||
| compliance | ||
| ngtsc | ||
| BUILD.bazel | ||
| extract_i18n_spec.ts | ||
| mocks.ts | ||
| perform_compile_spec.ts | ||
| perform_watch_spec.ts | ||
| test_support.ts | ||
| typescript_support_spec.ts | ||
| version_helpers_spec.ts | ||