UNPKG

svelte-trace

Version:

svelte-trace is a Svelte 5 preprocessor that enables 'click-to-open VS Code' functionality by adding metadata to HTML elements.

6 lines (5 loc) 223 B
import type { AST } from "svelte/compiler"; /** * Recursively adds data attribute to all HTML elements in the Svelte AST. */ export declare function processNodes(filepath: string, content: string, ast: AST.Root): string;