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

{
  "context": "Evaluates how well the solution uses @babel/register to install a runtime require hook with selective filtering and cache control for on-the-fly transpilation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Hook setup",
      "description": "Calls @babel/register once with the provided presets and appropriate extensions (e.g., .js/.ts/.jsx), and returns the disposer using the register revert function so the hook can be removed.",
      "max_score": 20
    },
    {
      "name": "Allow/Block",
      "description": "Translates allowlist patterns into the register only option and blocklist patterns into ignore so app/src files transpile while vendor/build paths are skipped.",
      "max_score": 25
    },
    {
      "name": "Cache directory",
      "description": "Configures cacheDirectory for @babel/register (defaulting to .cache/babel-register or the provided path) with cache enabled so compiled output is reused across requires.",
      "max_score": 20
    },
    {
      "name": "Cache toggle",
      "description": "Respects the TRANSPILE_CACHE flag or options.cache=false by passing cache: false to @babel/register and removing or bypassing the cacheDirectory when disabled.",
      "max_score": 20
    },
    {
      "name": "Purge helper",
      "description": "Implements purgeTranspileCache to delete the cacheDirectory contents (using fs.rm/rmdir) and leaves @babel/register with a clean cache state afterward.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json