Skip to content

Commit 32e5cf7

Browse files
author
Kanchalai Tanglertsampan
committed
Fix AMD emit
1 parent 6080c3e commit 32e5cf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/transformers/module/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ namespace ts {
549549
[createParameter(/*decorator*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, /*name*/ resolve)],
550550
/*type*/ undefined,
551551
createToken(SyntaxKind.EqualsGreaterThanToken),
552-
createCall(createIdentifier("require"), /*typeArguments*/ undefined, node.arguments.concat([resolve]))
553-
)]);
552+
createCall(createIdentifier("require"), /*typeArguments*/ undefined, [createArrayLiteral(node.arguments), resolve]))
553+
]);
554554
}
555555

556556
function transformImportCallExpressionCommonJS(node: ImportCall): Expression {

0 commit comments

Comments
 (0)