Babel
  • Docs
  • Setup
  • Try it out
  • Videos
  • Blog
  • Donate
  • Team
  • GitHub
Edit

babel-plugin-transform-remove-debugger

Example

In

debugger;

Out

Installation

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

Usage

With a configuration file (Recommended)

{
  "plugins": ["transform-remove-debugger"]
}

Via CLI

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

Via Node API

require("@babel/core").transform("code", {
  plugins: ["transform-remove-debugger"]
});
  • Example
  • Installation
  • Usage
    • With a configuration file (Recommended)
    • Via CLI
    • Via Node API
Babel
Docs
Learn ES2015
Community
VideosUser ShowcaseStack OverflowSlack ChannelTwitter
More
BlogGitHub OrgGitHub RepoWebsite RepoOld 6.x SiteOld 5.x Site