0.1.6 • Published 5 months ago

@yookue/babel-plugin-remove-comment v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@yookue/babel-plugin-remove-comment

NPM version Software License NPM downloads

šŸ… Removes script comments during babel compilation šŸ‘

Features

āœ… Support removing comments by option

Quickstart

You can install this package in your typescript project as follows:

$ npm install @yookue/babel-plugin-remove-comment --save-dev

Enjoy your coding journey with babel-plugin-remove-comment āœŒļø

Usage

  • Using in javascript/typescript
const plugin = require('@yookue/babel-plugin-remove-comment');
babel.transform(source_code, {
    plugins: [
        [plugin, {scope: 'all'}]
    ]
});
  • Using in babel.config.json or .babelrc.json of babel
{
    "plugin": [
        ["@yookue/babel-plugin-remove-comment", {
            "scope": "all"
        }]
    ]
}
  • Using in .fatherrc.ts of father
{
    extraBabelPlugins: [
        ['@yookue/babel-plugin-remove-comment', {
            scope: 'all'
        }]
    ]
}

Option

Here is the available option:

Param NameParam ValueValue Type
scopeall, block, line, nonestring

Document

References

License

This project is under the MIT License.

Website

0.1.6

5 months ago

0.1.4

9 months ago

0.1.5

9 months ago

0.2.0

9 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago