Skip to content

Commit eb59f72

Browse files
committed
types
1 parent 9682d57 commit eb59f72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/svelte/src/compiler/phases/types.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AST, Binding, Css, SvelteNode } from '#compiler';
1+
import type { AST, Binding, Css, SvelteNode, TemplateNode } from '#compiler';
22
import type { Identifier, LabeledStatement, Program, VariableDeclaration } from 'estree';
33
import type { Scope, ScopeRoot } from './scope.js';
44

@@ -37,7 +37,10 @@ export interface ComponentAnalysis extends Analysis {
3737
instance: Js;
3838
template: Template;
3939
/** Used for CSS pruning and scoping */
40-
elements: Array<AST.RegularElement | AST.SvelteElement | AST.RenderTag>;
40+
elements: Array<{
41+
node: AST.RegularElement | AST.SvelteElement | AST.RenderTag;
42+
path: SvelteNode[];
43+
}>;
4144
runes: boolean;
4245
exports: Array<{ name: string; alias: string | null }>;
4346
/** Whether the component uses `$$props` */

0 commit comments

Comments
 (0)