babel-plugin-log

0.1.0 • Public • Published

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(+ 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

Package Sidebar

Install

npm i babel-plugin-log

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

5.38 kB

Total Files

19

Last publish

Collaborators

  • alexchao