Babel plugin to instrument React components with custom transforms
{
"context": "Evaluates how well the solution configures babel-plugin-react-transform to detect and wrap React-style components built with custom patterns. Emphasizes correct option usage for factoryMethods and superClasses while keeping default detection and transform application intact.",
"type": "weighted_checklist",
"checklist": [
{
"name": "factoryMethods",
"description": "Adds the custom factory pattern (for example, UI.createWidget) to the plugin's factoryMethods array so those components are detected and wrapped.",
"max_score": 25
},
{
"name": "superClasses",
"description": "Adds the custom superclass (for example, WidgetBase) to the plugin's superClasses array so class components using it are wrapped.",
"max_score": 25
},
{
"name": "Keeps defaults",
"description": "Extends plugin defaults instead of replacing them—default React patterns still work alongside custom patterns in factoryMethods and superClasses.",
"max_score": 15
},
{
"name": "Transforms used",
"description": "Provides a transforms array to babel-plugin-react-transform so wrapped output actually calls the configured transform module for both custom patterns.",
"max_score": 20
},
{
"name": "Render gating",
"description": "Relies on the plugin's render-method gating so non-rendering classes or unmatched factories pass through unwrapped.",
"max_score": 15
}
]
}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