tessl install tessl/npm-babel--preset-stage-0@7.8.0Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
Agent Success
Agent success rate when using this tile
80%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.21x
Baseline
Agent success rate without this tile
66%
{
"context": "Evaluates whether the solution uses @babel/generator to emit code and source maps per the spec, including inline map handling and retaining original line layout when requested.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Generate call",
"description": "Uses the `generate` function from `@babel/generator` (or its default export) to emit code from the provided Babel AST rather than constructing code manually.",
"max_score": 20
},
{
"name": "Source map setup",
"description": "Configures `generate` with `sourceMaps: true` (or equivalent) and `sourceFileName` so the returned map includes the provided source name; supplies the original source text (e.g., via the third `generate` argument) so `sourcesContent` is populated.",
"max_score": 25
},
{
"name": "Identifier mapping",
"description": "Relies on the map produced by `@babel/generator` to supply identifier/location mappings (e.g., `names` entry for `answer` landing at the correct line/column) instead of fabricating mappings.",
"max_score": 20
},
{
"name": "Inline comment",
"description": "When inline maps are requested, converts the generator's map output to base64 and appends a `//# sourceMappingURL=data:application/json;base64,...` comment that decodes to the same map returned alongside `code`.",
"max_score": 15
},
{
"name": "Retain lines",
"description": "Passes `retainLines: true` (or an equivalent `@babel/generator` option) so leading blank lines in the AST's `loc` data are preserved in emitted code and reflected in the source map.",
"max_score": 20
}
]
}