Skip to content

Commit

Permalink
Revert "Enable logging"
Browse files Browse the repository at this point in the history
This reverts commit 71e4a95.
  • Loading branch information
kdy1 committed Sep 2, 2024
1 parent 5c2faf2 commit fac25fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use swc_core::{
ExportAll, ExportNamedSpecifier, Expr, ExprStmt, Id, Ident, ImportDecl, Lit, Module,
ModuleDecl, ModuleExportName, ModuleItem, NamedExport, Program, Stmt,
},
codegen::{text_writer::JsWriter, to_code, Emitter},
codegen::{text_writer::JsWriter, Emitter},

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / rustdoc check / build

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-unknown-linux-gnu - node@16

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / stable - aarch64-unknown-linux-gnu - node@16

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / stable - aarch64-apple-darwin - node@16

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-pc-windows-msvc - node@16

unused imports: `Emitter` and `text_writer::JsWriter`

Check warning on line 13 in turbopack/crates/turbopack-ecmascript/src/tree_shake/mod.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-apple-darwin - node@16

unused imports: `Emitter` and `text_writer::JsWriter`
},
};
use turbo_tasks::{RcStr, ValueToString, Vc};
Expand Down Expand Up @@ -488,15 +488,15 @@ pub(super) async fn split(
star_reexports,
} = dep_graph.split_module(&directives, &items);

eprintln!(
"# Program ({}):\n{}",
ident.to_string().await?,
to_code(&program)
);
// eprintln!(
// "# Program ({}):\n{}",
// ident.to_string().await?,
// to_code(&program)
// );

for (idx, module) in modules.iter().enumerate() {
eprintln!("# Module #{idx}:\n{}", to_code(&module));
}
// for (idx, module) in modules.iter().enumerate() {
// eprintln!("# Module #{idx}:\n{}", to_code(&module));
// }

assert_ne!(modules.len(), 0, "modules.len() == 0;\nModule: {module:?}",);

Expand Down

0 comments on commit fac25fc

Please sign in to comment.