From 11c8b54cfb9f90331f3474b356087ea37e7043a1 Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Thu, 22 Jan 2026 06:32:54 +0000 Subject: [PATCH] refactor(minifier): turn off `scope_tree_child_ids` for `SemanticBuilder` (#18241) I didn't see any `scope_tree_child_ids` related API calls in the minifier, so turn it off. --- crates/oxc_minifier/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/oxc_minifier/src/lib.rs b/crates/oxc_minifier/src/lib.rs index 6186ce11a03f2..b1bc18480fd23 100644 --- a/crates/oxc_minifier/src/lib.rs +++ b/crates/oxc_minifier/src/lib.rs @@ -136,11 +136,7 @@ impl<'a> Minifier { .options .mangle .map(|options| { - let mut semantic = SemanticBuilder::new() - .with_stats(stats) - .with_scope_tree_child_ids(true) - .build(program) - .semantic; + let mut semantic = SemanticBuilder::new().with_stats(stats).build(program).semantic; let class_private_mappings = Mangler::default() .with_options(options) .build_with_semantic(&mut semantic, program);