minification.removeDebugger

How to use the minification.removeDebugger transformer.

Remove all debugger; statements.

Usage

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

Example

In

debugger;

Out