Skip to content

Commit 86abfa4

Browse files
committed
Merge branch 'main' into deprecations
2 parents c9925c5 + f906aa2 commit 86abfa4

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
);
@@ -874,7 +874,7 @@ const legacy_scope_tweaker = {
874874
}
875875
};
876876

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

0 commit comments

Comments
 (0)