mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
fix(bundler): dont tree-shake imported enum if inlined and used (#12826)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user