From fc28242b99b350daf9ef12281b7fef3836e5a6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 31 Aug 2022 16:47:52 +0900 Subject: [PATCH] feat(es/minifier): Exclude `JSON` from alias list (#5698) --- crates/swc_ecma_minifier/src/alias/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")