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.

24 lines (23 loc) 715 B
/** * Checks if the provided file path is valid by excluding unwanted folders. */ export declare function isValidFilePath(filePath: string): boolean; /** * Checks if the file is the root `/src/routes/+layout.svelte` file. */ export declare function isRootLayoutFile(filePath: string): boolean; /** * Gets line and column number from character offset. */ export declare function getLineColumn(content: string, offset: number): { line: number; column: number; }; /** * Gets the absolute path to the package root directory. */ export declare function getPackageRoot(): string; /** * Gets the path to the vscode-bridge assets directory. */ export declare function getVSCodeBridgeAssetsPath(): string;