fix(compiler): use absolute paths for comparing module urls

This commit is contained in:
Alex Eagle 2016-05-02 22:21:10 -06:00
parent 43e0fa513b
commit 52a6ba7ed9
1 changed files with 1 additions and 1 deletions

View File

@ -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),