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 c8ad226 commit 6c8ee70Copy full SHA for 6c8ee70
crates/swc_ecma_minifier/src/compress/pure/misc.rs
@@ -565,9 +565,7 @@ impl Pure<'_> {
565
Expr::Lit(lit) => !matches!(lit, Lit::Str(..) | Lit::Num(..) | Lit::Null(..)),
566
// This can change behavior if the value is `undefined` or `null`.
567
Expr::Ident(..) => false,
568
- // Optional chaining can produce undefined
569
Expr::OptChain(..) => false,
570
- // Member expressions might produce undefined
571
Expr::Member(..) => false,
572
_ => true,
573
})
0 commit comments