Babel helper functions for inserting module loads
Overall
score
99%
{
"context": "This evaluation criteria assesses how well the engineer uses @babel/preset-env and @babel/core to implement target-based JavaScript transformation. The focus is on correctly configuring preset-env with target specifications and leveraging its automatic plugin selection capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses @babel/core",
"description": "Uses @babel/core transformation API (transform, transformSync, or transformAsync) to perform the code transformation",
"max_score": 15
},
{
"name": "Configures @babel/preset-env",
"description": "Includes @babel/preset-env in the presets configuration array passed to the Babel transformation",
"max_score": 20
},
{
"name": "Passes targets option",
"description": "Correctly passes the targets option to @babel/preset-env configuration, enabling target-based transformation",
"max_score": 20
},
{
"name": "Handles modules option",
"description": "Correctly configures the modules option in @babel/preset-env to control module format transformation (e.g., 'commonjs', false for ESM)",
"max_score": 15
},
{
"name": "Enables debug mode",
"description": "Properly configures debug option in @babel/preset-env when requested to expose transformation metadata",
"max_score": 10
},
{
"name": "Handles source maps",
"description": "Correctly enables source map generation through Babel's sourceMaps option when requested",
"max_score": 10
},
{
"name": "Returns correct output",
"description": "Returns a result object with the transformed code and properly extracts source maps and metadata when available",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--helper-module-importsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10