A minifier moved one line and broke month-end for four days
What happened
Object shorthand inside a call the bundler chose to inline survived relocation un-expanded. The deployed bundle then referenced a variable that no longer existed. It failed only in the production build, and only on the email path, so every local test passed and the error looked like a bad deploy.
What changed
We reproduce against the platform build, not just a local one, before calling anything fixed, because that is the only place this class of bug appears. We grep the compiled chunks for the pattern rather than trusting the source. At known-risky call sites we write arguments out in full instead of using shorthand.