fix(compiler-cli): fix flat module import on Windows (#14712)
This commit is contained in:
parent
93ddd38107
commit
5094aef8fd
|
@ -271,7 +271,8 @@ export class CompilerHost implements AotCompilerHost {
|
||||||
if (DTS.test(filePath)) {
|
if (DTS.test(filePath)) {
|
||||||
// Check for a bundle index.
|
// Check for a bundle index.
|
||||||
if (this.hasBundleIndex(filePath)) {
|
if (this.hasBundleIndex(filePath)) {
|
||||||
return this.bundleIndexNames.has(filePath);
|
const normalFilePath = path.normalize(filePath);
|
||||||
|
return this.bundleIndexNames.has(normalFilePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue