From a254a8ad3e6a7947615600848139e9fdc402cfb9 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Tue, 20 Aug 2024 23:54:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxc_minifier/src/plugins/replace_global_defines.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/oxc_minifier/src/plugins/replace_global_defines.rs b/crates/oxc_minifier/src/plugins/replace_global_defines.rs index 3616f281bfa37..aa2c5fb2c5c27 100644 --- a/crates/oxc_minifier/src/plugins/replace_global_defines.rs +++ b/crates/oxc_minifier/src/plugins/replace_global_defines.rs @@ -287,8 +287,9 @@ impl<'a> ReplaceGlobalDefines<'a> { return false; }; - // Considering `import.meta.env` -> `undefined`, for the first loop the i is already - // 0, if it did not match and still reach there, that means + // Config `import.meta.env.* -> 'undefined'` + // Considering try replace `import.meta.env` to `undefined`, for the first loop the i is already + // 0, if it did not match part name and still reach here, that means // current_part_member_expression is still something, and possible to match in the // further loop if i == 0 && matched {