Skip to content

Commit

Permalink
chore: 🤖 clean
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Aug 20, 2024
1 parent abefa77 commit a16a241
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/oxc_minifier/src/plugins/replace_global_defines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ impl<'a> ReplaceGlobalDefines<'a> {
// dbg!(&member);
for meta_proeperty_define in &self.config.0.meta_proeperty_defines {
let ret = Self::is_meta_property_define(meta_proeperty_define, member);
dbg!(&ret);
if ret {
let value = self.parse_value(&meta_proeperty_define.value);
*expr = value;
Expand All @@ -250,7 +249,6 @@ impl<'a> ReplaceGlobalDefines<'a> {
loop {
let part = &meta_define.parts[i];
let matched = cur_part_name.as_str() == part;
dbg!(&part, cur_part_name);
if !matched {
// Considering import.meta.env.*
// ```js
Expand All @@ -259,7 +257,6 @@ impl<'a> ReplaceGlobalDefines<'a> {
// ```
// So we use has_matched_part to track if any part has matched.

dbg!(&meta_define.postfix_wildcard, has_matched_part);
if !meta_define.postfix_wildcard || has_matched_part {
return false;
}
Expand All @@ -284,7 +281,6 @@ impl<'a> ReplaceGlobalDefines<'a> {
} else {
return false;
};
dbg!(&i, matched);

if i == 0 && matched {
break;
Expand Down

0 comments on commit a16a241

Please sign in to comment.