Babel plugin that transforms eval() calls containing string literals by parsing and compiling the string content at transform time
Overall
score
98%
{
"context": "This criteria evaluates how effectively the engineer uses Babel's CLI and core APIs to implement file compilation, source map generation, file filtering, and watch mode functionality. The focus is on proper usage of @babel/cli and @babel/core packages to accomplish the specified compilation tasks.",
"type": "weighted_checklist",
"checklist": [
{
"name": "File compilation",
"description": "Uses @babel/core transformFile or transformFileSync APIs (or @babel/cli programmatic APIs) to compile individual JavaScript files from source to output directory",
"max_score": 20
},
{
"name": "Directory compilation",
"description": "Implements directory traversal and compiles all JavaScript files, properly handling nested directory structures and maintaining relative paths in output",
"max_score": 15
},
{
"name": "Source map options",
"description": "Correctly uses Babel's sourceMaps option (set to true, 'inline', 'both', etc.) to generate external or inline source maps as specified",
"max_score": 15
},
{
"name": "Copy non-JS files",
"description": "Implements logic to copy non-JavaScript files (e.g., .json, .txt) from source to output directory when copyFiles option is enabled, preserving directory structure",
"max_score": 10
},
{
"name": "Ignore patterns",
"description": "Uses Babel's ignore option (array of glob patterns) or implements filtering to skip files matching specified patterns during compilation",
"max_score": 10
},
{
"name": "Only patterns",
"description": "Uses Babel's only option (array of glob patterns) or implements filtering to compile only files matching specified patterns",
"max_score": 10
},
{
"name": "Watch mode",
"description": "Implements file watching functionality using chokidar or similar library to detect file changes and trigger recompilation automatically",
"max_score": 15
},
{
"name": "Babel configuration",
"description": "Properly configures Babel with appropriate options object passed to transform APIs, including handling of outDir and proper file path resolution",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel-plugin-transform-evaldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10