diff --git a/src/lib.rs b/src/lib.rs index 45231c8..752fe21 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ use tokio::fs; use std::path::Path; use oxc_allocator::Allocator; use oxc_ast::{ast::{Function}, visit::walk, Visit}; -use oxc_ast::ast::{Directive, ImportDeclaration, StringLiteral}; +use oxc_ast::ast::{Directive, ImportDeclaration}; use oxc_parser::Parser; use oxc_span::SourceType; use oxc_syntax::scope::ScopeFlags; @@ -69,7 +69,6 @@ impl Default for ReactServerComponent { impl<'a> Visit<'a> for ReactServerComponent { fn visit_directive(&mut self, directive: &Directive<'a>) { - println!("visit_directive: {:?}", directive.expression.value); match directive.expression.value.as_str() { "use client" => { if self.file_type == FileType::ServerComponent ||