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