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 {
430
430
*/
431
431
function addExportEqualsIfNeeded ( statements : Statement [ ] , emitAsReturn : boolean ) {
432
432
if ( currentModuleInfo . exportEquals ) {
433
- const expressionResult = importCallExpressionVisitor ( currentModuleInfo . exportEquals . expression ) ;
433
+ const expressionResult = visitNode ( currentModuleInfo . exportEquals . expression , importCallExpressionVisitor ) ;
434
434
if ( expressionResult ) {
435
- if ( expressionResult instanceof Array ) {
436
- return Debug . fail ( "export= expression should never be replaced with multiple expressions!" ) ;
437
- }
438
435
if ( emitAsReturn ) {
439
436
const statement = createReturn ( expressionResult ) ;
440
437
setTextRange ( statement , currentModuleInfo . exportEquals ) ;
You can’t perform that action at this time.
0 commit comments