Skip to content

Commit f906aa2

Browse files
authored
chore: fix playground (#11310)
1 parent 94b4268 commit f906aa2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export function analyze_module(ast, options) {
236236

237237
walk(
238238
/** @type {import('estree').Node} */ (ast),
239-
{ scope },
239+
{ scope, analysis: { runes: true } },
240240
// @ts-expect-error TODO clean this mess up
241241
merge(set_scope(scopes), validation_runes_js, runes_scope_js_tweaker)
242242
);
@@ -862,7 +862,7 @@ const legacy_scope_tweaker = {
862862
}
863863
};
864864

865-
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope }>} */
865+
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope, analysis: { runes: true } }>} */
866866
const runes_scope_js_tweaker = {
867867
VariableDeclarator(node, { state }) {
868868
if (node.init?.type !== 'CallExpression') return;

0 commit comments

Comments
 (0)