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:

committed by
Victor Berchet

parent
c1b029a413
commit
f24ea59f74
@ -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 ({
|
||||
|
Reference in New Issue
Block a user