File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/compiler/transformers/module Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -430,11 +430,8 @@ namespace ts {
430430 */
431431 function addExportEqualsIfNeeded ( statements : Statement [ ] , emitAsReturn : boolean ) {
432432 if ( currentModuleInfo . exportEquals ) {
433- const expressionResult = importCallExpressionVisitor ( currentModuleInfo . exportEquals . expression ) ;
433+ const expressionResult = visitNode ( currentModuleInfo . exportEquals . expression , importCallExpressionVisitor ) ;
434434 if ( expressionResult ) {
435- if ( expressionResult instanceof Array ) {
436- return Debug . fail ( "export= expression should never be replaced with multiple expressions!" ) ;
437- }
438435 if ( emitAsReturn ) {
439436 const statement = createReturn ( expressionResult ) ;
440437 setTextRange ( statement , currentModuleInfo . exportEquals ) ;
You can’t perform that action at this time.
0 commit comments