mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-16 14:40:50 -05:00
Fix System module export import = (#49788)
* Add more SystemJS test case * Fix System module `export import =` * Update test case
This commit is contained in:
@@ -466,6 +466,20 @@ namespace ts {
|
||||
factory.createAssignment(importVariableName, parameterName)
|
||||
)
|
||||
);
|
||||
if (hasSyntacticModifier(entry, ModifierFlags.Export)) {
|
||||
statements.push(
|
||||
factory.createExpressionStatement(
|
||||
factory.createCallExpression(
|
||||
exportFunction,
|
||||
/*typeArguments*/ undefined,
|
||||
[
|
||||
factory.createStringLiteral(idText(importVariableName)),
|
||||
parameterName,
|
||||
]
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case SyntaxKind.ExportDeclaration:
|
||||
|
||||
Reference in New Issue
Block a user