We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e73b10a commit a32d99dCopy full SHA for a32d99d
src/compiler/transformers/module/module.ts
@@ -430,11 +430,8 @@ namespace ts {
430
*/
431
function addExportEqualsIfNeeded(statements: Statement[], emitAsReturn: boolean) {
432
if (currentModuleInfo.exportEquals) {
433
- const expressionResult = importCallExpressionVisitor(currentModuleInfo.exportEquals.expression);
+ const expressionResult = visitNode(currentModuleInfo.exportEquals.expression, importCallExpressionVisitor);
434
if (expressionResult) {
435
- if (expressionResult instanceof Array) {
436
- return Debug.fail("export= expression should never be replaced with multiple expressions!");
437
- }
438
if (emitAsReturn) {
439
const statement = createReturn(expressionResult);
440
setTextRange(statement, currentModuleInfo.exportEquals);
0 commit comments