CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-babel-plugin-react-transform

Babel plugin to instrument React components with custom transforms

59%

Overall

Evaluation59%

1.48x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates whether the solution leverages babel-plugin-react-transform to gate wrapping to class components with render methods, configures it correctly, and surfaces the plugin-emitted metadata for consumers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin applied",
      "description": "Uses babel-plugin-react-transform in the Babel pipeline (e.g., via transformSync/transformFile) rather than hand-rolled component detection or wrapping.",
      "max_score": 20
    },
    {
      "name": "Transforms config",
      "description": "Supplies a valid transforms array to the plugin with at least one transform entry (with a transform module name/path) so wrapping can execute.",
      "max_score": 20
    },
    {
      "name": "Render gate honored",
      "description": "Relies on the plugin's class-component detection so only classes extending configured React bases that define a render method are wrapped; classes lacking render remain unchanged in output.",
      "max_score": 20
    },
    {
      "name": "Custom superClasses",
      "description": "Passes provided superclass patterns through the plugin's superClasses option to make non-standard bases (e.g., BaseComponent) eligible for wrapping when they include render.",
      "max_score": 20
    },
    {
      "name": "Metadata captured",
      "description": "Extracts the plugin-emitted components map (the `_components` metadata) from the transformed output and returns displayName/isInFunction data for wrapped classes.",
      "max_score": 20
    }
  ]
}
tessl i tessl/npm-babel-plugin-react-transform@3.0.0

tile.json