Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This evaluation assesses how well the engineer uses @swc/core's minification capabilities to implement constant folding and expression simplification. The criteria focus on proper usage of the minify() or minifySync() methods with appropriate compression options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses @swc/core",
"description": "Solution imports and uses the @swc/core package (via require or import statement)",
"max_score": 10
},
{
"name": "Uses minify method",
"description": "Solution calls the minify() or minifySync() method from @swc/core to perform code minification",
"max_score": 20
},
{
"name": "Enables compression",
"description": "Solution configures the minify options to enable compression (e.g., { compress: true } or { jsc: { minify: { compress: true } } })",
"max_score": 20
},
{
"name": "Constant folding enabled",
"description": "Solution enables constant folding in the compress options (either by default with compress: true, or explicitly via compress options like evaluate, unsafe_math, or similar optimization flags)",
"max_score": 25
},
{
"name": "Correct API contract",
"description": "Solution implements the specified async function signature that accepts code string and options, and returns a Promise resolving to {code: string}",
"max_score": 15
},
{
"name": "Handles minify output",
"description": "Solution correctly extracts and returns the minified code from @swc/core's minify result (the result has a 'code' property)",
"max_score": 10
}
]
}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