Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This evaluation assesses how effectively the engineer uses @swc/core's minification API, specifically focusing on variable mangling, property name handling, comment preservation, and minification configuration options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Core minify function",
"description": "Uses @swc/core's minify() or minifySync() function as the primary minification mechanism",
"max_score": 25
},
{
"name": "Variable mangling enabled",
"description": "Configures the mangle option (either mangle: true or mangle: { toplevel: true }) to enable variable name shortening",
"max_score": 20
},
{
"name": "Property mangling control",
"description": "Implements the mangleProperties option using mangle.properties configuration, allowing selective property name mangling when requested",
"max_score": 15
},
{
"name": "Reserved names preservation",
"description": "Uses mangle.reserved or mangle.keep_fnames to preserve specified variable/function names from mangling",
"max_score": 15
},
{
"name": "Comment handling",
"description": "Configures compress.comments or format.comments options to preserve important comments (e.g., 'some' or /^!/)",
"max_score": 10
},
{
"name": "Output formatting",
"description": "Uses compress options to enable whitespace removal and code compression (e.g., compress: true or specific compress flags)",
"max_score": 10
},
{
"name": "Async API usage",
"description": "Returns a Promise and properly handles asynchronous minification using async/await or promise chains",
"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