Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexzhang1030/swc-plugin-remove-console

A swc plugin helps you remove your `console.*` statement
https://github.com/alexzhang1030/swc-plugin-remove-console

Last synced: about 2 months ago
JSON representation

A swc plugin helps you remove your `console.*` statement

Awesome Lists containing this project

README

        

# 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

```json5
{
"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
}
]
]
}
}
}

```