8000 add println! · coder-xiaotian/swc-useclient@0ac0ab9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ac0ab9

Browse files
add println!
1 parent 8406174 commit 0ac0ab9

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

transform/Cargo.lock

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transform/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use swc_core::{
66
visit::VisitMut,
77
},
88
};
9-
use tracing::{info, instrument};
109

1110
#[derive(Debug, Default, Clone, Deserialize)]
1211
#[serde(rename_all = "camelCase", deny_unknown_fields)]
@@ -19,13 +18,11 @@ pub struct TransformVisitor {
1918
pub filepath: String,
2019
pub include: Vec<String>,
2120
}
22-
2321
impl VisitMut for TransformVisitor {
24-
#[instrument(skip_all)]
2522
fn visit_mut_module(&mut self, n: &mut Module) {
23+
println!("path: {}", self.filepath);
2624
for path in &self.include {
27-
info!("path: {:?}", path);
28-
if self.filepath.contains(path) {
25+
if self.filepath.contains(path) || self.filepath.contains("/button") {
2926
let str = Str {
3027
span: Span {
3128
lo: BytePos(0),

0 commit comments

Comments
 (0)
0