Files
2026-05-30 19:59:39 -03:00

19 lines
378 B
TypeScript

import { Node } from '@babel/core';
import { Plugin } from 'vite';
type Options = {
predicate?: (node: Node) => boolean;
base?: string;
};
/**
* 直接在 JSX 元素上添加 code-path 属性
*
* 示例:
* <div>Hello</div>
* ->
* <div code-path="src/App.tsx:1:1">Hello</div>
*/
declare function inspectAttr(options?: Options): Plugin;
export { inspectAttr };