mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 17:05:58 -05:00
Do not rewrite substitute named import reference when generating es6 modules
Conflicts: src/compiler/checker.ts tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.js tests/baselines/reference/es6ImportNamedImport.js
This commit is contained in:
committed by
Mohamed Hegazy
parent
006ed82730
commit
29b221430f
@@ -10851,7 +10851,7 @@ module ts {
|
||||
return getExportNameSubstitution(exportSymbol, node.parent);
|
||||
}
|
||||
// Named imports from ES6 import declarations are rewritten
|
||||
if (symbol.flags & SymbolFlags.Alias) {
|
||||
if (symbol.flags & SymbolFlags.Alias && languageVersion < ScriptTarget.ES6) {
|
||||
return getAliasNameSubstitution(symbol);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ m = a;
|
||||
from;
|
||||
"es6ImportNamedImportParsingError_0";
|
||||
{
|
||||
_module_1.a;
|
||||
a;
|
||||
}
|
||||
from;
|
||||
"es6ImportNamedImportParsingError_0";
|
||||
|
||||
Reference in New Issue
Block a user