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 669d2d7 commit f632b2aCopy full SHA for f632b2a
.changeset/sixty-pandas-rush.md
@@ -0,0 +1,5 @@
1
+---
2
+"svelte": patch
3
4
+
5
+fix: optimize object property mutations in compilation
packages/svelte/src/compiler/phases/3-transform/client/visitors/global.js
@@ -105,6 +105,8 @@ export const global_visitors = {
105
if (serialized_assignment === assignment) {
106
// No change to output -> nothing to transform -> we can keep the original update expression
107
return next();
108
+ } else if (context.state.analysis.runes) {
109
+ return serialized_assignment;
110
} else {
111
/** @type {import('estree').Statement[]} */
112
let statements;
0 commit comments