Babel's modular runtime helpers that provide transpilation support for modern JavaScript features
94
{
"context": "This criteria evaluates how well the implementation uses @babel/core's plugin and preset resolution and loading system. The focus is on demonstrating knowledge of createConfigItem and related APIs for working with Babel's configuration system.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses createConfigItem",
"description": "Implementation uses @babel/core's createConfigItem function (or createConfigItemSync/createConfigItemAsync) to load and resolve plugins/presets",
"max_score": 40
},
{
"name": "Correct type specification",
"description": "Properly specifies the 'type' option ('plugin' or 'preset') when calling createConfigItem to differentiate between plugins and presets",
"max_score": 20
},
{
"name": "Handles name formats",
"description": "Correctly passes plugin/preset names in various formats (shorthand, full, scoped) to createConfigItem and lets Babel handle resolution automatically",
"max_score": 20
},
{
"name": "Error handling",
"description": "Properly catches and handles errors when createConfigItem fails to resolve or load a plugin/preset, returning meaningful error information",
"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