CtrlK
BlogDocsLog inGet started
Tessl Logo

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

Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations

80

1.21x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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
    }
  ]
}

Install with Tessl CLI

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

tile.json