npm.io
0.0.3 • Published 5 years ago

babel-plugin-clean-code

Licence
MIT
Version
0.0.3
Deps
0
Size
14 kB
Vulns
0
Weekly
0
Stars
1

README

babel-plugin-clean-code

usage

$ npm install babel-plugin-clean-code -D

in your babel config file or babel-loader

{
  "plugins": [["babel-plugin-clean-code", options]]
}
options

default options are as below:

{
  clearConsole: true,
  consoleLevel: ["log", "error", "info", "warn"],
  clearDebugger: true,
}
ts
interface IBabelPluginCleanCode {
  clearConsole: boolean;
  clearDebugger: boolean;
  consoleLevel: ReadonlyArray<"log" | "error" | "info" | "warn">;
}

test

$ npm run test

build

$ npm run build

Keywords