fix(compiler): properly work on windows
Verified manually on a windows surface tablet. Fixes #19492
This commit is contained in:

committed by
Alex Rickabaugh

parent
0833b59aab
commit
696af79dc7
@ -108,7 +108,8 @@ export class TsCompilerAotCompilerTypeCheckHostAdapter extends
|
||||
private resolveModuleName(moduleName: string, containingFile: string): ts.ResolvedModule
|
||||
|undefined {
|
||||
const rm = ts.resolveModuleName(
|
||||
moduleName, containingFile, this.options, this, this.moduleResolutionCache)
|
||||
moduleName, containingFile.replace(/\\/g, '/'), this.options, this,
|
||||
this.moduleResolutionCache)
|
||||
.resolvedModule;
|
||||
if (rm && this.isSourceFile(rm.resolvedFileName)) {
|
||||
// Case: generateCodeForLibraries = true and moduleName is
|
||||
|
Reference in New Issue
Block a user