babel-plugin-console-prepend
A simple transform that prepends uncommited console.log calls with a string
Install
$ npm i --save-dev babel-plugin-console-prepend babel-cli
Example
Transforms
console; // this line has been committedconsole; // this line has not been committed
to
console; // this line has been committedconsole; // this line has not been committed
Usage
.babelrc
Set plugin options using an array of [pluginName, optionsObject]
.
Babel CLI
$ babel --plugins console-prepend script.js
Babel API
;