tessl install tessl/npm-babel--runtime@7.28.0Babel's modular runtime helpers that provide transpilation support for modern JavaScript features
Agent Success
Agent success rate when using this tile
94%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.19x
Baseline
Agent success rate without this tile
79%
{
"context": "This criteria evaluates how well the engineer uses @babel/core's file transformation APIs (transformFileSync and transformFileAsync) to build a file transformation tool. The focus is on correct API usage, proper configuration of plugins/presets, and handling of transformation results.",
"type": "weighted_checklist",
"checklist": [
{
"name": "transformFileSync usage",
"description": "Uses @babel/core's transformFileSync function to synchronously transform JavaScript files from disk",
"max_score": 20
},
{
"name": "transformFileAsync usage",
"description": "Uses @babel/core's transformFileAsync function to asynchronously transform JavaScript files from disk, properly handling the returned Promise",
"max_score": 20
},
{
"name": "Plugin configuration",
"description": "Correctly configures plugins in the options object passed to transform functions, such as @babel/plugin-transform-arrow-functions for arrow function transformation",
"max_score": 15
},
{
"name": "Preset configuration",
"description": "Correctly configures presets in the options object, such as @babel/preset-react for JSX transformation",
"max_score": 15
},
{
"name": "Result code access",
"description": "Accesses the transformed code from the result object's code property returned by transform functions",
"max_score": 10
},
{
"name": "Source map handling",
"description": "Configures sourceMaps option in the transformation options and accesses the map property from the result object",
"max_score": 10
},
{
"name": "Error handling",
"description": "Properly handles transformation errors (syntax errors, file not found, etc.) and extracts error information from the thrown error object",
"max_score": 10
}
]
}