| Crates.io | swc-plugin-remove-console |
| lib.rs | swc-plugin-remove-console |
| version | 0.4.0 |
| created_at | 2024-06-24 07:14:10.480018+00 |
| updated_at | 2025-03-31 03:07:02.370493+00 |
| description | A swc plugin to remove console.log statements |
| homepage | |
| repository | https://github.com/alexzhang1030/swc-plugin-remove-console.git |
| max_upload_size | |
| id | 1281943 |
| size | 80,835 |
A swc plugin helps you remove your console.* statement
Notice * now support:
logwarnerrorinfoFirst 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
}
]
]
}
}
}