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

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

PR Close #36968
This commit is contained in:
Pete Bacon Darwin
2020-05-07 08:29:24 +01:00
committed by Alex Rickabaugh
parent 4abd60361a
commit 65337fb8b8
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) :