CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-babel--preset-stage-0

tessl install tessl/npm-babel--preset-stage-0@7.8.0

Deprecated 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%

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates whether the solution uses @babel/core to run plugins against an existing Babel AST to rewrite logging, promote the default export, deduplicate reporter imports, and optionally emit a source map without reparsing input.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Transform from AST",
      "description": "Uses @babel/core transformFromAstAsync/transformFromAstSync (or equivalent programmatic entry) with the provided AST, avoiding a fresh parse and passing through filename/source code as needed.",
      "max_score": 30
    },
    {
      "name": "Plugin visitors",
      "description": "Implements the rewrites via Babel plugin visitors (e.g., CallExpression for console.log, ExportDefaultDeclaration for handler promotion) rather than manual string manipulation.",
      "max_score": 20
    },
    {
      "name": "Reporter import",
      "description": "Uses Babel node utilities to add a single default import for the reporter module when missing and reuses an existing one without duplication, honoring an override for the module specifier.",
      "max_score": 15
    },
    {
      "name": "Default export promotion",
      "description": "Promotes an anonymous default export into a named export and re-exports it as default by constructing the appropriate AST nodes with @babel/types helpers inside the plugin.",
      "max_score": 15
    },
    {
      "name": "Source map output",
      "description": "Requests source map generation via @babel/core (e.g., sourceMaps: true) and returns the map object alongside code when includeSourceMap is set, preserving the provided filename.",
      "max_score": 10
    },
    {
      "name": "Reporter configurability",
      "description": "Supports a configurable reporter module name through plugin options while defaulting to \"reporter\" when no override is provided.",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@babel/preset-stage-0@7.8.x
tile.json