New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

swc-plugin-remove-console

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swc-plugin-remove-console

a swc plugin helps to remove console statement

latest
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

swc plugin remove-console

A swc plugin helps you remove your console.* statement

Notice * now support:

  • log
  • warn
  • error
  • info

Configure

First ensure you've installed swc and swc-plugin-remove-console, then add following these codes in your .swcrc file

{
  "jsc": {
    "experimental": {
      "plugins": [
        [
          "swc-plugin-remove-console",
          {
            "exclude": ["error"] // this config is optional, default is [], you can pass `log`, `warn`, `error`, `info` to exclude some of them
          }
        ]
      ]
    }
  }
}

Keywords

swc-plugin

FAQs

Package last updated on 31 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