Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This criteria evaluates how effectively the engineer uses the @swc/core package's minification capabilities to implement a JavaScript code minifier. The focus is on proper usage of the minify() or minifySync() API and correct configuration of minification options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses minify API",
"description": "Correctly imports and uses either minify() or minifySync() from @swc/core package",
"max_score": 25
},
{
"name": "Configures mangle option",
"description": "Properly configures the mangle option in the minify options to enable or disable variable name mangling based on function parameters",
"max_score": 20
},
{
"name": "Configures compress option",
"description": "Properly configures the compress option in the minify options to enable or disable code compression based on function parameters",
"max_score": 20
},
{
"name": "Configures comment preservation",
"description": "Properly configures comment-related options (such as format.comments or jsc.minify.format.comments) to control comment preservation based on function parameters",
"max_score": 20
},
{
"name": "Returns correct structure",
"description": "Correctly extracts and returns the minified code from the minify() result in the expected format {code: string}",
"max_score": 10
},
{
"name": "Error handling",
"description": "Appropriately handles errors from the minify() call, allowing syntax errors to propagate or wrapping them meaningfully",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-swc--core-darwin-arm64docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10