swc is now ok with it.
It was really hard to create a minimal reporduction case.
All of the
_templateObject in below code refer to differect function.
But as previously swc cannot detect use-use conflict, it was miscompiled as-is.
Thanks to @erikdesjardins, swc's optimizer does not break codes like
Thanks to @dsherret, there are more span improvements.