Socket
Book a DemoInstallSign in
Socket

@yookue/babel-plugin-remove-comment

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yookue/babel-plugin-remove-comment

Removes script comments during babel compilation

0.1.6
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@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

Keywords

babel

FAQs

Package last updated on 02 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.