0.1.0 • Published 5 years ago

babel-plugin-log v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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