diff --git a/tools/@angular/tsc-wrapped/src/compiler_host.ts b/tools/@angular/tsc-wrapped/src/compiler_host.ts index 373e8938e0..f0c6c1afc4 100644 --- a/tools/@angular/tsc-wrapped/src/compiler_host.ts +++ b/tools/@angular/tsc-wrapped/src/compiler_host.ts @@ -22,6 +22,8 @@ export abstract class DelegatingHost implements ts.CompilerHost { getDefaultLibLocation = () => this.delegate.getDefaultLibLocation(); writeFile: ts.WriteFileCallback = this.delegate.writeFile; getCurrentDirectory = () => this.delegate.getCurrentDirectory(); + getDirectories = (path: string): string[] => + (this.delegate as any).getDirectories?(this.delegate as any).getDirectories(path): []; getCanonicalFileName = (fileName: string) => this.delegate.getCanonicalFileName(fileName); useCaseSensitiveFileNames = () => this.delegate.useCaseSensitiveFileNames(); getNewLine = () => this.delegate.getNewLine();