From 52a6ba7ed98bda7ee28ed015909a1c1483690cab Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 2 May 2016 22:21:10 -0600 Subject: [PATCH] fix(compiler): use absolute paths for comparing module urls --- tools/compiler_cli/src/reflector_host.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compiler_cli/src/reflector_host.ts b/tools/compiler_cli/src/reflector_host.ts index 5eeb08bf2b..d5bfc8a6dd 100644 --- a/tools/compiler_cli/src/reflector_host.ts +++ b/tools/compiler_cli/src/reflector_host.ts @@ -53,7 +53,7 @@ export class NodeReflectorHost implements StaticReflectorHost, ImportGenerator { * they are resolvable by the moduleResolution strategy from the CompilerHost. */ getImportPath(containingFile: string, importedFile: string) { - importedFile = this.resolveAssetUrl(importedFile, ''); + importedFile = this.resolveAssetUrl(importedFile, containingFile); containingFile = this.resolveAssetUrl(containingFile, ''); // TODO(tbosch): if a file does not yet exist (because we compile it later),