0.0.2 • Published 6 years ago

babel-plugin-unimport v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-unimport

remove some libary code on babel build

Installation

npm install --save-dev babel-plugin-unimport

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": [
    ["unimport", {
      "library": {
        "devlevel": ["log", "debug", "info", "warn", "error"]
      }
    }]
  ]
}

Via CLI

babel --plugins unimport script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["babel-plugin-unimport"]
});

This content is released under the (http://opensource.org/licenses/MIT) MIT License.