CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--helper-module-imports

Babel helper functions for inserting module loads

Overall
score

99%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well an engineer uses Babel's transformation APIs to convert block-scoped variable declarations (let/const) to ES5-compatible code. The focus is on proper usage of @babel/core transformation methods and the @babel/plugin-transform-block-scoping plugin.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Core transformation API",
      "description": "Uses @babel/core's transform() or transformSync() method to process the input JavaScript code",
      "max_score": 25
    },
    {
      "name": "Block scoping plugin",
      "description": "Correctly configures and uses @babel/plugin-transform-block-scoping plugin in the transformation options",
      "max_score": 30
    },
    {
      "name": "Code extraction",
      "description": "Properly extracts the transformed code string from the transformation result object (accessing the .code property)",
      "max_score": 15
    },
    {
      "name": "Plugin configuration",
      "description": "Provides correct plugin configuration structure in the options object (plugins array with proper plugin specification)",
      "max_score": 20
    },
    {
      "name": "Error handling",
      "description": "Handles potential parsing or transformation errors from Babel APIs appropriately",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-babel--helper-module-imports

tile.json