Babel plugin to instrument React components with custom transforms
Create a transformation helper that uses a React component wrapping plugin to instrument components without altering module export semantics or double-wrapping nodes. The helper should expose a function that compiles source text and returns both transformed code and the component metadata emitted by the plugin.
@generates
export interface TransformResult {
code: string;
metadata: Record<string, { displayName?: string; isInFunction?: boolean }>;
}
export function transformReactSource(source: string, filename?: string): TransformResult;Plugin that wraps React components with configured transforms while preserving export behavior and avoiding duplicate visits.
tessl i tessl/npm-babel-plugin-react-transform@3.0.0evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9