chore: fix playground (#11310)

pull/11311/head
Rich Harris 8 months ago committed by GitHub
parent 94b4268ce3
commit f906aa207b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -236,7 +236,7 @@ export function analyze_module(ast, options) {
walk(
/** @type {import('estree').Node} */ (ast),
{ scope },
{ scope, analysis: { runes: true } },
// @ts-expect-error TODO clean this mess up
merge(set_scope(scopes), validation_runes_js, runes_scope_js_tweaker)
);
@ -862,7 +862,7 @@ const legacy_scope_tweaker = {
}
};
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope }>} */
/** @type {import('zimmerframe').Visitors<import('#compiler').SvelteNode, { scope: Scope, analysis: { runes: true } }>} */
const runes_scope_js_tweaker = {
VariableDeclarator(node, { state }) {
if (node.init?.type !== 'CallExpression') return;

Loading…
Cancel
Save