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 eb6488c commit 978403bCopy full SHA for 978403b
packages/svelte/src/compiler/phases/3-transform/client/visitors/DebugTag.js
@@ -10,7 +10,11 @@ import * as b from '../../../../utils/builders.js';
10
export function DebugTag(node, context) {
11
const object = b.object(
12
node.identifiers.map((identifier) =>
13
- b.prop('init', identifier, /** @type {Expression} */ (context.visit(identifier)))
+ b.prop(
14
+ 'init',
15
+ identifier,
16
+ b.call('$.snapshot', /** @type {Expression} */ (context.visit(identifier)))
17
+ )
18
)
19
);
20
0 commit comments