| 90 | } |
| 91 | |
| 92 | wrapHost( |
| 93 | host: ts.CompilerHost & Partial<UnifiedModulesHost>, |
| 94 | inputFiles: readonly string[], |
| 95 | options: ts.CompilerOptions, |
| 96 | ): PluginCompilerHost { |
| 97 | // TODO(alxhub): Eventually the `wrapHost()` API will accept the old `ts.Program` (if one is |
| 98 | // available). When it does, its `ts.SourceFile`s need to be re-tagged to enable proper |
| 99 | // incremental compilation. |
| 100 | this.options = {...this.ngOptions, ...options} as NgCompilerOptions; |
| 101 | this.host = NgCompilerHost.wrap(host, inputFiles, this.options, /* oldProgram */ null); |
| 102 | return this.host; |
| 103 | } |
| 104 | |
| 105 | setupCompilation( |
| 106 | program: ts.Program, |