0.1.0 • Published 1 year ago

console-argument-tracker-loader v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Getting Started

To begin, you'll need to install console-argument-tracker-loader:

npm install --save-dev  console-argument-tracker-loader

Usage

// webpack.config.js
    rules: [
      {
        test: /\.js$/,
        use: [
          {
            loader: 'console-argument-tracker-loader'
          }
        ]
      }
    ]

loader Result

development mode

const a = 1;
console.test(a); // a: 1
// equal
console.log("a:",a); // a: 1
--------------------
function a(b) {
  console.test(b);
}
//a: ƒ a(b) {
//  console.log("b", b);
//}
console.test(a);

production mode

console.log and console.test will be removed
0.1.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago