@metagptx/vite-plugin-source-locator
Version:
A Vite plugin for source code location tracking
21 lines (18 loc) • 547 B
TypeScript
import { NodePath } from '@babel/traverse';
import * as t from '@babel/types';
import { P as PluginOptions } from './type-CEnZeKjH.js';
declare function rnSourceLocator(options?: PluginOptions): () => {
name: string;
visitor: {
JSXOpeningElement(path: NodePath<t.JSXOpeningElement>, state: {
filename?: string;
file?: {
code?: string;
opts?: {
filename?: string;
};
};
}): void;
};
};
export { rnSourceLocator };