Crates.io | swc-plugin-remove-console |
lib.rs | swc-plugin-remove-console |
version | 0.3.0 |
source | src |
created_at | 2024-06-24 07:14:10.480018 |
updated_at | 2024-10-08 05:55:54.988887 |
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 | 30,152 |
A swc plugin helps you remove your console.*
statement
Notice *
now support:
log
warn
error
info
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
}
]
]
}
}
}