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-10/

{
  "context": "Evaluates how well the solution configures Babel to offload helper code to @babel/runtime and to produce a standalone helper bundle, as required by the runtime helper strategy spec. Checks focus on correct use of Babel APIs such as transform-runtime and buildExternalHelpers rather than general coding practices.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Runtime plugin config",
      "description": "Transpilation uses @babel/core transform APIs (e.g., transformAsync/transformSync) with @babel/plugin-transform-runtime enabled, mapping the spec's module format flag to plugin options like useESModules while keeping helpers/regenerator active so helpers are imported instead of inlined.",
      "max_score": 30
    },
    {
      "name": "Runtime imports",
      "description": "Generated code shows helper imports from @babel/runtime (e.g., @babel/runtime/helpers/* or @babel/runtime/regenerator) with no inline helper definitions, and helper lists come from Babel output/metadata rather than custom parsing to ensure the plugin drives helper selection.",
      "max_score": 25
    },
    {
      "name": "Batch consistency",
      "description": "Batch transpilation reuses a shared @babel/core configuration so multiple files share the same transform-runtime behavior (including CJS vs ESM helper imports) and derives per-file helpers from FileResult.metadata.helpers instead of manual deduction to avoid duplicated helpers across outputs.",
      "max_score": 20
    },
    {
      "name": "External helpers bundle",
      "description": "buildExternalHelpersBundle delegates to Babel's buildExternalHelpers (from @babel/core or @babel/helpers) to emit a single script string limited to requested helper names, honoring requested globalName/format options for the external helper library.",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

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

tile.json