fix(bundler): dont tree-shake imported enum if inlined and used (#12826)

This commit is contained in:
dave caruso
2024-07-25 17:29:20 -07:00
committed by GitHub
parent a2f68989a0
commit e54fe5995b
3 changed files with 115 additions and 3 deletions

View File

@@ -18653,7 +18653,15 @@ fn NewParser_(
name_loc,
E.Identifier{ .ref = ref },
name,
identifier_opts,
.{
.assign_target = identifier_opts.assign_target,
.is_call_target = identifier_opts.is_call_target,
.is_delete_target = identifier_opts.is_delete_target,
// If this expression is used as the target of a call expression, make
// sure the value of "this" is preserved.
.was_originally_identifier = false,
},
);
}
}