Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This criteria evaluates how well the engineer uses SWC's environment-based preset and usage-based polyfilling features with core-js integration. The focus is on proper configuration of SWC's env options to automatically inject polyfills based on target browsers.",
"type": "weighted_checklist",
"checklist": [
{
"name": "SWC transform call",
"description": "Uses @swc/core's transform() or transformSync() method to compile the JavaScript code",
"max_score": 15
},
{
"name": "Environment preset config",
"description": "Configures the 'env' option in SWC's jsc.transform configuration with proper targets specification",
"max_score": 20
},
{
"name": "Targets specification",
"description": "Properly sets 'targets' in the env configuration using browserlist-compatible format (e.g., 'ie 11', 'chrome >= 60', or array of targets)",
"max_score": 15
},
{
"name": "Usage-based polyfilling",
"description": "Enables usage-based polyfilling by setting env.mode to 'usage' to inject only necessary polyfills based on code analysis",
"max_score": 25
},
{
"name": "Core-js integration",
"description": "Specifies core-js version in env.coreJs option (value should be 2 or 3, typically '3' or 3)",
"max_score": 20
},
{
"name": "API compliance",
"description": "Returns compiled code in the correct format as specified in the API (object with 'code' property)",
"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