babel-plugin-log
v0.1.0
Published
A babel plugin to help to print useful debug log
Downloads
2
Readme
babel-plugin-log
A babel plugin to help to print useful debug log.
Install
npm install babel-plugin-log
Usage
Configure babel:
.babelrc
{
"plugins": [
"babel-plugin-log"
]
}
Example
source code
console.log(a)
console.log(a, b, c)
console.log(a + b)
generated code
console.log(1)
console.log("a", a);
console.log("a", a, "b", b, "c", c);
console.log("a + b", a + b);
License
MIT