babel-plugin-transform-remove-debugger

Example

In

  1. debugger;

Out

Installation

  1. npm install babel-plugin-transform-remove-debugger --save-dev

Usage

  1. {
  2. "plugins": ["transform-remove-debugger"]
  3. }

Via CLI

  1. babel --plugins transform-remove-debugger script.js

Via Node API

  1. require("@babel/core").transform("code", {
  2. plugins: ["transform-remove-debugger"]
  3. });