rescript-compiler
rescript-compiler copied to clipboard
Better output for record duplication
As described in https://github.com/rescript-lang/rescript/pull/7043#issue-2537532373
record duplication currently emits:
let newrecord = { ...obj };
newrecord.field = value;
It should be:
{ ...obj, field: value };