diff --git a/crates/swc_ecma_minifier/src/alias/mod.rs b/crates/swc_ecma_minifier/src/alias/mod.rs index 6b7b80dee4c..3caf6a97407 100644 --- a/crates/swc_ecma_minifier/src/alias/mod.rs +++ b/crates/swc_ecma_minifier/src/alias/mod.rs @@ -63,7 +63,8 @@ impl InfectionCollector<'_> { if self.unresolved_ctxt == Some(e.1) { match e.0 { - js_word!("String") + js_word!("JSON") + | js_word!("String") | js_word!("Object") | js_word!("Number") | js_word!("BigInt")