Skip to content

Commit 49b15c3

Browse files
committed
Replace additional spread operator usage
1 parent 8dc8c06 commit 49b15c3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
### 🐞 Bug fixes
88
- _...Add new stuff here..._
9-
-
9+
- Replace additional spread operator (`...`) due to esbuild limitations
10+
1011
## 24.1.1
1112

1213
### 🐞 Bug fixes

src/validate_style.min.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ validateStyleMin.layoutProperty = wrapCleanErrors(injectValidateSpec(validateLay
7575

7676
function injectValidateSpec(validator: (options: object) => any) {
7777
return function(options) {
78-
return validator({
79-
...options,
80-
validateSpec: validate,
81-
});
78+
return validator(Object.assign({}, options, {validateSpec: validate}));
8279
};
8380
}
8481

0 commit comments

Comments
 (0)