跳到主要内容

babel-plugin-transform-remove-debugger

Example

In

JavaScript
debugger;

Out

Installation

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

Usage

babel.config.json
{
"plugins": ["transform-remove-debugger"]
}

Via CLI

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

Via Node API

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