babel-plugin-clean-code
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i babel-plugin-clean-code

    Weekly Downloads

    44

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    14.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • wfk007