Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexzhang1030/swc-plugin-remove-console
- Owner: alexzhang1030
- License: mit
- Created: 2022-11-27T13:48:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T01:23:21.000Z (2 months ago)
- Last Synced: 2024-12-24T06:14:17.964Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 629 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
]
]
}
}
}```