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 aeeff28 commit 5282a8dCopy full SHA for 5282a8d
src/compiler/transformers/esnext.ts
@@ -402,6 +402,11 @@ namespace ts {
402
};
403
404
export function createAssignHelper(context: TransformationContext, attributesSegments: Expression[]) {
405
+ if (context.getCompilerOptions().target === ScriptTarget.ES2015) {
406
+ return createCall(createPropertyAccess(createIdentifier("Object"), "assign"),
407
+ /*typeArguments*/ undefined,
408
+ attributesSegments);
409
+ }
410
context.requestEmitHelper(assignHelper);
411
return createCall(
412
getHelperName("__assign"),
0 commit comments