minification.removeConsole

How to use the minification.removeConsole transformer.

Remove all calls to console.* functions.

Usage

require("babel").transform("code", { optional: ["minification.removeConsole"] });
$ babel --optional minification.removeConsole script.js

Example

In

console.log("foo");
console.error("bar");
console.trace();
console.assert(foo());

Out