Skip to content

Commit

Permalink
Undo debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 committed Dec 13, 2022
1 parent 2e47c47 commit aa42bc6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/swc_ecma_minifier/src/lib.rs
Expand Up @@ -111,14 +111,14 @@ pub fn optimize(
// have to see if optimized code matches global definition and we can run
// this at startup.

// if !defs.is_empty() {
let defs = defs.iter().map(|(k, v)| (k.clone(), v.clone())).collect();
n.visit_mut_with(&mut global_defs::globals_defs(
defs,
extra.unresolved_mark,
extra.top_level_mark,
));
// }
if !defs.is_empty() {
let defs = defs.iter().map(|(k, v)| (k.clone(), v.clone())).collect();
n.visit_mut_with(&mut global_defs::globals_defs(
defs,
extra.unresolved_mark,
extra.top_level_mark,
));
}
}

let module_info = match &n {
Expand Down

0 comments on commit aa42bc6

Please sign in to comment.