包详细信息

babel-plugin-remove-comments

thejameskyle975MIT不推荐使用2.0.0

[DEPRECATED] Use comments: false in your Babel config

Remove comments.

babel-plugin

自述文件

babel-plugin-remove-comments

Remove comments.

Installation

$ npm install babel-plugin-remove-comments

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["remove-comments"]
}

Via CLI

$ babel --plugins remove-comments script.js

Via Node API

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