File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/svelte/src/compiler/phases/2-analyze Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export function analyze_module(ast, options) {
236
236
237
237
walk (
238
238
/** @type {import('estree').Node } */ ( ast ) ,
239
- { scope } ,
239
+ { scope, analysis : { runes : true } } ,
240
240
// @ts -expect-error TODO clean this mess up
241
241
merge ( set_scope ( scopes ) , validation_runes_js , runes_scope_js_tweaker )
242
242
) ;
@@ -862,7 +862,7 @@ const legacy_scope_tweaker = {
862
862
}
863
863
} ;
864
864
865
- /** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope }> } */
865
+ /** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope, analysis: { runes: true } }> } */
866
866
const runes_scope_js_tweaker = {
867
867
VariableDeclarator ( node , { state } ) {
868
868
if ( node . init ?. type !== 'CallExpression' ) return ;
You can’t perform that action at this time.
0 commit comments