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

Version

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