Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture
89
{
"context": "This evaluation assesses how effectively an engineer uses @swc/core to implement path mapping functionality. The focus is on proper use of SWC's transform API with jsc.baseUrl and jsc.paths configuration options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses transform API",
"description": "Uses @swc/core's transform() or transformSync() method to process source code",
"max_score": 20
},
{
"name": "Configures jsc.paths",
"description": "Correctly configures the jsc.paths option in the SWC configuration object to specify path mappings",
"max_score": 25
},
{
"name": "Configures jsc.baseUrl",
"description": "Correctly configures the jsc.baseUrl option in the SWC configuration object when handling baseUrl resolution",
"max_score": 20
},
{
"name": "Extracts transformed code",
"description": "Properly extracts the transformed code from the SWC transform result (e.g., accessing the .code property)",
"max_score": 15
},
{
"name": "Handles async operations",
"description": "Correctly handles the asynchronous nature of SWC's transform API using async/await or promises",
"max_score": 10
},
{
"name": "Path mapping resolution",
"description": "Achieves correct path mapping resolution where imports with configured aliases are transformed to their resolved paths",
"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