Skip to content

Commit

Permalink
chore: 🤖 update debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 16, 2023
1 parent 2c63179 commit 8303646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 4 additions & 5 deletions crates/rspack_core/src/compiler/compilation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl<'a> FlagDependencyUsagePluginProxy<'a> {
ExtendRef(Vec<ExtendedReferencedExport>),
}

dbg!(&root_module_id);
let mut map: IdentifierMap<ProcessModuleReferencedExports> = IdentifierMap::default();
let mut queue = VecDeque::new();
queue.push_back(root_module_id);
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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::<Vec<_>>(),
Expand Down

0 comments on commit 8303646

Please sign in to comment.