tessl install tessl/npm-babel--preset-stage-0@7.8.0Deprecated 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%
Design a runtime transpilation helper that installs a require-time compiler with fine-grained filtering and cache behavior so Node.js code using modern syntax can load without a build step.
.cache/babel-register in the project root unless overridden) and reused across repeated requires so the second load avoids re-compiling. @testTRANSPILE_CACHE=0 or passing cache: false disables cache writes and removes any existing cache directory. Exposing a purgeTranspileCache helper clears the cache directory when invoked. @test@generates
/**
* Installs runtime transpilation for require/import with selective filtering and cache control.
*
* @param {Object} [options]
* @param {string[]} [options.allow] - Globs or regex patterns to transpile; defaults to app/src JS and TS files.
* @param {string[]} [options.block] - Globs or regex patterns to skip; defaults to node_modules and build outputs.
* @param {string} [options.cacheDirectory] - Directory for compiled cache; defaults to a project-local folder.
* @param {boolean} [options.cache] - Force-enable or disable caching; env TRANSPILE_CACHE=0 overrides to disable.
* @param {Array} [options.presets] - Presets to apply during runtime compilation.
* @returns {() => void} disposer that removes the hook and closes any related resources.
*/
export function installRuntimeTranspiler(options);
/**
* Deletes all compiled runtime cache artifacts and returns true when removal succeeds.
*
* @returns {Promise<boolean>}
*/
export function purgeTranspileCache();Installs a runtime transpilation hook with filtering and cache control.
@satisfied-by