Skip to content

Commit

Permalink
fix: var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Sep 25, 2024
1 parent b4335d1 commit c0b9e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/mako/src/plugins/tree_shaking/shake/skip_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub(super) fn skip_module_optimize(
module_graph: &mut ModuleGraph,
tree_shake_modules_ids: &Vec<ModuleId>,
tree_shake_modules_map: &HashMap<ModuleId, RefCell<TreeShakeModule>>,
_context: &Arc<Context>,
context: &Arc<Context>,
) -> Result<()> {
mako_profile_function!();

Expand Down Expand Up @@ -493,7 +493,7 @@ pub(super) fn skip_module_optimize(
// stmt_id is reversed order
for to_replace in replaces.iter() {
// println!("{} apply with {:?}", module_id.id, to_replace.1);
apply_replace(to_replace, module_id, module_graph, _context);
apply_replace(to_replace, module_id, module_graph, context);

Check warning on line 496 in crates/mako/src/plugins/tree_shaking/shake/skip_module.rs

View check run for this annotation

Codecov / codecov/patch

crates/mako/src/plugins/tree_shaking/shake/skip_module.rs#L496

Added line #L496 was not covered by tests
}

let mut tsm = tree_shake_modules_map.get(module_id).unwrap().borrow_mut();
Expand Down

0 comments on commit c0b9e5e

Please sign in to comment.