From 56fb4eb08dbac337ff01d43705c833fb5731a934 Mon Sep 17 00:00:00 2001 From: dario-piotrowicz Date: Sun, 27 Jun 2021 17:48:13 +0100 Subject: [PATCH] docs(compiler): interally typo fixed (#42676) PR Close #42676 --- packages/compiler/design/architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/design/architecture.md b/packages/compiler/design/architecture.md index 68cabad86b..69efd44d9c 100644 --- a/packages/compiler/design/architecture.md +++ b/packages/compiler/design/architecture.md @@ -352,7 +352,7 @@ So the Angular transformer will run after the Tsickle transforms, but before the ##### Watch mode -`ngtsc` will support TypeScript's `--watch` mode for incremental compilation. Interally, watch mode is implemented via reuse of a `ts.Program` from the previous compile. When a `ts.Program` is reused, TypeScript determines which source files need to be re-typechecked and re-emitted, and performs those operations. +`ngtsc` will support TypeScript's `--watch` mode for incremental compilation. Internally, watch mode is implemented via reuse of a `ts.Program` from the previous compile. When a `ts.Program` is reused, TypeScript determines which source files need to be re-typechecked and re-emitted, and performs those operations. This mode works for the Angular transformer and most of the decorator compilers, because they operate only using the metadata from one particular file. The exception is the `@Component` decorator, which requires the selector scope for the module in which the component is declared in. Effectively, this means that all components within a selector scope must be recompiled together, as any changes to the component selectors or type names, for example, will invalidate the compilation of all templates of all components in the scope. Since TypeScript will not track these changes, it's the responsibility of `ngtsc` to ensure the re-compilation of the right set of files.