BabelPluginRemoveComment
    Preparing search index...

    BabelPluginRemoveComment

    @unikue/babel-plugin-remove-comment

    NPM version Software License NPM downloads

    🏅 Removes script comments during babel compilation 👍

    ✅ Support removing comments by option

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

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

    Enjoy your coding journey with babel-plugin-remove-comment ✌️

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

    Here is the available option:

    Param Name Param Value Value Type
    scope all, block, line, none string

    This project is under the MIT License.