tessl install tessl/npm-babel--runtime@7.28.0Babel'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%
Build a Babel plugin that tracks transformations and modifies parsing behavior based on configuration.
Your plugin should:
trackStats (boolean) that enables/disables statistics trackingtrackStats is enabled, attach the statistics to the result metadata under the key transformStats{ transformStats: { functionDeclarations: 2, arrowFunctions: 3 } } @test<div>Hello</div>), the plugin should successfully parse and transform it without errors @test@generates
/**
* Babel plugin that tracks transformation statistics and enables JSX parsing
*
* @param {object} api - The Babel API object
* @param {object} options - Plugin options
* @param {boolean} options.trackStats - Whether to track and report statistics
* @returns {object} Plugin object with visitor and lifecycle methods
*/
module.exports = function customPlugin(api, options) {
// Plugin implementation
};Provides the Babel transformation API and plugin infrastructure.