diff --git a/crates/rspack_core/src/compiler/compilation.rs b/crates/rspack_core/src/compiler/compilation.rs index 80ebaa23bcc..70b767e28c1 100644 --- a/crates/rspack_core/src/compiler/compilation.rs +++ b/crates/rspack_core/src/compiler/compilation.rs @@ -32,7 +32,7 @@ use super::{ use crate::{ build_chunk_graph::build_chunk_graph, cache::{use_code_splitting_cache, Cache, CodeSplittingCache}, - debug_exports_info, is_source_equal, + is_source_equal, tree_shaking::{optimizer, visitor::SymbolRef, BailoutFlag, OptimizeDependencyResult}, AddQueue, AddTask, AddTaskResult, AdditionalChunkRuntimeRequirementsArgs, BoxDependency, BoxModule, BuildQueue, BuildTask, BuildTaskResult, CacheCount, CacheOptions, Chunk, ChunkByUkey, @@ -1158,10 +1158,9 @@ impl Compilation { while plugin_driver.optimize_dependencies(self).await?.is_some() {} logger.time_end(start); - // TODO: remove - if self.options.is_new_tree_shaking() { - debug_exports_info(&self.module_graph); - } + // if self.options.is_new_tree_shaking() { + // debug_exports_info(&self.module_graph); + // } let start = logger.time("create chunks"); use_code_splitting_cache(self, |compilation| async { diff --git a/crates/rspack_plugin_javascript/src/plugin/flag_dependency_usage_plugin.rs b/crates/rspack_plugin_javascript/src/plugin/flag_dependency_usage_plugin.rs index 2305b01589b..d32a8090460 100644 --- a/crates/rspack_plugin_javascript/src/plugin/flag_dependency_usage_plugin.rs +++ b/crates/rspack_plugin_javascript/src/plugin/flag_dependency_usage_plugin.rs @@ -74,7 +74,6 @@ impl<'a> FlagDependencyUsagePluginProxy<'a> { ExtendRef(Vec), } - dbg!(&root_module_id); let mut map: IdentifierMap = IdentifierMap::default(); let mut queue = VecDeque::new(); queue.push_back(root_module_id); @@ -132,9 +131,6 @@ impl<'a> FlagDependencyUsagePluginProxy<'a> { { continue; } else { - dbg!(&old_referenced_exports); - dbg!(&referenced_exports); - let mut exports_map = if let Some(old_referenced_exports) = old_referenced_exports { match old_referenced_exports { ProcessModuleReferencedExports::Map(map) => map, @@ -197,7 +193,6 @@ impl<'a> FlagDependencyUsagePluginProxy<'a> { } } - dbg!(&map); for (module_id, referenced_exports) in map { let normalized_refs = match referenced_exports { ProcessModuleReferencedExports::Map(map) => map.into_values().collect::>(),