fix(compiler-cli): ensure LogicalFileSystem handles case-sensitivity (#36859)

The `LogicalFileSystem` was not taking into account the
case-sensitivity of the file-system when caching logical
file paths.

PR Close #36859
This commit is contained in:
Pete Bacon Darwin
2020-05-06 21:58:45 +01:00
committed by Alex Rickabaugh
parent 0ec0ff3bce
commit 53a8459d5f
7 changed files with 46 additions and 25 deletions

View File

@ -75,7 +75,8 @@ export class DecorationAnalyzer {
// TODO(alxhub): there's no reason why ngcc needs the "logical file system" logic here, as ngcc
// projects only ever have one rootDir. Instead, ngcc should just switch its emitted import
// based on whether a bestGuessOwningModule is present in the Reference.
new LogicalProjectStrategy(this.reflectionHost, new LogicalFileSystem(this.rootDirs)),
new LogicalProjectStrategy(
this.reflectionHost, new LogicalFileSystem(this.rootDirs, this.host)),
]);
aliasingHost = this.bundle.entryPoint.generateDeepReexports ?
new PrivateExportAliasingHost(this.reflectionHost) :