|
|
@ -1,4 +1,4 @@
|
|
|
|
import type { AST, Binding, Css, SvelteNode, TemplateNode } from '#compiler';
|
|
|
|
import type { AST, Binding, Css, ElementWithPath, SvelteNode } from '#compiler';
|
|
|
|
import type { Identifier, LabeledStatement, Program, VariableDeclaration } from 'estree';
|
|
|
|
import type { Identifier, LabeledStatement, Program, VariableDeclaration } from 'estree';
|
|
|
|
import type { Scope, ScopeRoot } from './scope.js';
|
|
|
|
import type { Scope, ScopeRoot } from './scope.js';
|
|
|
|
|
|
|
|
|
|
|
@ -37,10 +37,7 @@ export interface ComponentAnalysis extends Analysis {
|
|
|
|
instance: Js;
|
|
|
|
instance: Js;
|
|
|
|
template: Template;
|
|
|
|
template: Template;
|
|
|
|
/** Used for CSS pruning and scoping */
|
|
|
|
/** Used for CSS pruning and scoping */
|
|
|
|
elements: Array<{
|
|
|
|
elements: ElementWithPath[];
|
|
|
|
node: AST.RegularElement | AST.SvelteElement | AST.RenderTag;
|
|
|
|
|
|
|
|
path: SvelteNode[];
|
|
|
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
runes: boolean;
|
|
|
|
runes: boolean;
|
|
|
|
exports: Array<{ name: string; alias: string | null }>;
|
|
|
|
exports: Array<{ name: string; alias: string | null }>;
|
|
|
|
/** Whether the component uses `$$props` */
|
|
|
|
/** Whether the component uses `$$props` */
|
|
|
|