Skip to content

Commit 1ab235d

Browse files
committed
disable accessors in runes mode
1 parent b45d272 commit 1ab235d

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export function analyze_component(root, source, options) {
384384
inject_styles: options.css === 'injected' || options.customElement,
385385
accessors: options.customElement
386386
? true
387-
: !!options.accessors ||
387+
: (runes ? false : !!options.accessors) ||
388388
// because $set method needs accessors
389389
!!options.legacy?.componentApi,
390390
reactive_statements: new Map(),

0 commit comments

Comments
 (0)