antv-l7/node_modules/babel-plugin-transform-remo...
thinkinggis f7e5376b7d fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
..
lib fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
README.md fix(fix css): fix css png 2019-11-22 18:04:14 +08:00
package.json fix(fix css): fix css png 2019-11-22 18:04:14 +08:00

README.md

babel-plugin-transform-remove-debugger

This plugin removes all debugger; statements.

Example

In

debugger;

Out

Installation

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

Usage

.babelrc

{
  "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"]
});