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 f2f3c8b commit 38738a8Copy full SHA for 38738a8
packages/svelte/src/compiler/migrate/index.js
@@ -739,7 +739,7 @@ const instance_script = {
739
);
740
const bindings = ids.map((id) => state.scope.get(id.name));
741
const reassigned_bindings = bindings.filter((b) => b?.reassigned);
742
- if (reassigned_bindings.length === 0 && !bindings.some((b) => b?.kind === 'store_sub')) {
+ if (reassigned_bindings.length === 0 && !bindings.some((b) => b?.kind === 'store_sub') && node.body.expression.left.type === "Identifier") {
743
let { start, end } = /** @type {{ start: number, end: number }} */ (
744
node.body.expression.right
745
0 commit comments