Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yookue/babel-plugin-remove-comment

Package Overview
Dependencies
Maintainers
0
Versions
7
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.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
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

FAQs

Package last updated on 14 Nov 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc