fix(compiler-cli): don't rewrite imports when annotating for closure (#19444)

Closure no longer needs to have the imports rewritten avoid rewriting
as this can cause issues when the source directory structure differs
from what is deployed.

Fixes: #19026
This commit is contained in:
Chuck Jazdzewski
2017-09-28 09:31:28 -07:00
committed by Victor Berchet
parent c1b029a413
commit f24ea59f74
2 changed files with 38 additions and 1 deletions

View File

@ -53,7 +53,7 @@ function createEmitCallback(options: api.CompilerOptions): api.TsEmitCallback|un
fileNameToModuleId: (fileName) => fileName,
googmodule: false,
untyped: true,
convertIndexImportShorthand: true, transformDecorators, transformTypesToClosure,
convertIndexImportShorthand: false, transformDecorators, transformTypesToClosure,
};
return ({