Babel's modular runtime helpers that provide transpilation support for modern JavaScript features
94
{
"context": "This criteria evaluates how well the engineer uses @babel/core's transformation APIs to access and work with the FileResult object structure, including the code, AST, metadata, and map properties returned by transformation functions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses transform API",
"description": "Imports and correctly uses @babel/core transformation methods (transform, transformSync, or transformAsync) to transform JavaScript code",
"max_score": 25
},
{
"name": "Extracts code property",
"description": "Accesses and returns the 'code' property from the FileResult object returned by transform/transformSync/transformAsync",
"max_score": 20
},
{
"name": "Extracts ast property",
"description": "Accesses and returns the 'ast' property from the FileResult object, using the 'ast: true' option in transformation options when necessary",
"max_score": 20
},
{
"name": "Extracts metadata property",
"description": "Accesses and returns the 'metadata' property from the FileResult object",
"max_score": 15
},
{
"name": "Handles source maps",
"description": "Accesses and returns the 'map' property from the FileResult object when the 'sourceMaps: true' or 'sourceMaps: \"inline\"' option is used",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--runtimedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10