Babel plugin that transforms ECMAScript object rest and spread syntax into ES5-compatible code.
85
Quality
Pending
Does it follow best practices?
Impact
85%
1.06xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
Create a Babel plugin that removes all console method calls (like console.log, console.warn, console.error, etc.) from JavaScript code during compilation.
Your plugin should:
console.log('hello');)console.log('test') statement, the plugin removes it completely @testconsole.log, console.warn, console.error), the plugin removes all of them @test@generates
/**
* Babel plugin that removes console method calls from code.
*
* @param {object} babel - The Babel instance with types utilities
* @returns {object} Plugin object with visitor methods
*/
export default function removeConsolePlugin(babel) {
// Plugin implementation
}Provides the core Babel transformation pipeline and plugin infrastructure.
Provides AST traversal capabilities with the visitor pattern and Path API.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10