Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
80
{
"context": "Evaluates whether the solution actually drives Babel's compiler entry points to transform inline sources and files using the provided presets/plugins, returning code, source maps, and metadata. It checks use of async, sync, and callback forms plus extension handling built into @babel/core.",
"type": "weighted_checklist",
"checklist": [
{
"name": "String entrypoint",
"description": "Inline compilation calls @babel/core.transformAsync (or its callback equivalent) on provided source, passing through caller presets/plugins rather than hand-written transforms.",
"max_score": 25
},
{
"name": "Preset wiring",
"description": "Presets like @babel/preset-env and @babel/preset-typescript are forwarded via the @babel/core options so output strips types and downlevels features such as nullish coalescing, honoring filename and sourceMaps settings for inline runs.",
"max_score": 20
},
{
"name": "File compilation",
"description": "File-based paths use @babel/core.transformFileAsync (or transformFileSync) with cwd/filename forwarded to preserve correct source map paths and produce code that mirrors inline behavior.",
"max_score": 20
},
{
"name": "Callback support",
"description": "Error-first callback path is implemented with @babel/core.transformFile (or transform) and surfaces raw Babel errors before invoking the success branch with the same shape as async results.",
"max_score": 10
},
{
"name": "Extension guard",
"description": "Allowed extensions derive from @babel/core.DEFAULT_EXTENSIONS (or an equivalent list from the package) to decide when to reject a file, instead of a hardcoded or unrelated set.",
"max_score": 10
},
{
"name": "Metadata return",
"description": "Results expose Babel's generated map and metadata fields (result.map, result.metadata) without stripping or recomputing them, enabling downstream tooling to reuse compiler outputs.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-babel--preset-stage-0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10