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 0ba9d4e commit 167e77dCopy full SHA for 167e77d
packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js
@@ -276,7 +276,11 @@ export const javascript_visitors_runes = {
276
/** @type {import('estree').Expression} */ (visit(binding.initial));
277
// We're adding proxy here on demand and not within the prop runtime function so that
278
// people not using proxied state anywhere in their code don't have to pay the additional bundle size cost
279
- if (initial && binding.kind === 'bindable_prop' && should_proxy_or_freeze(initial, state.scope)) {
+ if (
280
+ initial &&
281
+ binding.kind === 'bindable_prop' &&
282
+ should_proxy_or_freeze(initial, state.scope)
283
+ ) {
284
initial = b.call('$.proxy', initial);
285
}
286
0 commit comments