We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ce499 commit caecbc8Copy full SHA for caecbc8
crates/oxc_minifier/src/peephole/normalize.rs
@@ -180,7 +180,8 @@ impl<'a> Normalize {
180
// checking whether any variables are exposed to outside (e.g. `export` in ESM)
181
if decl.kind.is_const()
182
&& ctx.current_scope_id() != ctx.scoping().root_scope_id()
183
- && !ctx.current_scope_flags().contains_direct_eval() // direct eval may have a assignment inside
+ && !ctx.current_scope_flags().contains_direct_eval()
184
+ // direct eval may have a assignment inside
185
{
186
let all_declarations_are_only_read =
187
decl.declarations.iter().flat_map(|d| d.id.get_binding_identifiers()).all(|id| {
0 commit comments