Skip to content

Commit 931f211

Browse files
authored
chore: fix $.attachment prop (#16172)
1 parent c91e69b commit 931f211

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export function build_component(node, component_name, context) {
275275
);
276276
}
277277

278-
push_prop(b.prop('get', b.call('$.attachment'), expression, true));
278+
push_prop(b.prop('init', b.call('$.attachment'), expression, true));
279279
}
280280
}
281281

0 commit comments

Comments
 (0)