Babel plugin to instrument React components with custom transforms
{
"context": "Evaluates whether the solution configures babel-plugin-react-transform to compose multiple transforms deterministically while sharing component identifiers and injected dependencies. Emphasis is on using the plugin's transform array semantics, generated wrapper chain, and options injection rather than hand-rolled composition.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Order chain",
"description": "Uses the transforms array ordering from babel-plugin-react-transform so the last TransformConfig runs closest to the component and earlier entries wrap via the plugin's `_wrapComponent` chain, producing inner-then-outer logs in the compiled output.",
"max_score": 30
},
{
"name": "Shared ids",
"description": "Relies on the plugin-provided `uniqueId` argument and `_components` metadata map so every transform logs the same component identifier instead of creating per-transform ids.",
"max_score": 25
},
{
"name": "Plugin wrapper",
"description": "Build uses babel-plugin-react-transform to emit the wrapper function and `_transformers` initialization rather than manually composing transforms, and the compiled component execution flows through that generated wrapper.",
"max_score": 20
},
{
"name": "Imports passed",
"description": "For each TransformConfig, forwards `imports` so transformer factories receive dependencies in the order injected by the plugin's `initTransformers` logic and use them during wrapping.",
"max_score": 15
},
{
"name": "Locals passed",
"description": "For each TransformConfig, forwards `locals` so transformer factories access them via `options.locals` exactly as the plugin defines, enabling logging or behavior that depends on those locals.",
"max_score": 10
}
]
}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