or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@babel/runtime@7.28.x
tile.json

tessl/npm-babel--runtime

tessl install tessl/npm-babel--runtime@7.28.0

Babel's modular runtime helpers that provide transpilation support for modern JavaScript features

Agent Success

Agent success rate when using this tile

94%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.19x

Baseline

Agent success rate without this tile

79%

task.mdevals/scenario-10/

Babel Configuration Inspector

A command-line tool that inspects and reports on Babel configuration files in a project directory.

Capabilities

Load configuration information

Load Babel configuration for a given file path and provide detailed information about the configuration source, options, and file paths.

  • When provided with a project directory path and a target file path, the tool loads the Babel configuration and returns an object containing configuration file paths (config file, babelrc file, babelignore file) and whether the file should be ignored. @test

Handle projects without configuration

Gracefully handle projects that have no Babel configuration files.

  • When provided with a directory that contains no Babel configuration files, the tool returns null to indicate no configuration was found. @test

Report configuration options

Extract and display the resolved configuration options that would be used for transpilation.

  • When configuration is found, the tool extracts and returns the resolved options including any presets and plugins that would be applied. @test

Implementation

@generates

API

/**
 * Inspects Babel configuration for a given file path.
 *
 * @param {string} projectDir - The root directory of the project to inspect.
 * @param {string} filename - The target file path to check configuration for.
 * @returns {Promise<Object|null>} Configuration information object or null if no config found.
 *   The returned object contains:
 *   - config: string|undefined - Path to the config file (babel.config.js, etc.)
 *   - babelrc: string|undefined - Path to the .babelrc file
 *   - ignore: string|undefined - Path to the .babelignore file
 *   - options: Object - Resolved Babel options including plugins and presets
 *   - hasFilesystemConfig: boolean - Whether configuration was loaded from the filesystem
 */
async function inspectConfig(projectDir, filename) {
  // IMPLEMENTATION HERE
}

module.exports = {
  inspectConfig
};

Dependencies { .dependencies }

@babel/core { .dependency }

Provides Babel configuration loading and inspection capabilities.

@satisfied-by