@mike-benn You’ve been bitten by Vite’s inconsistencies.
See my explanation here for some background:
As explained in that post, if you run npm run build && npm run preview
you’ll see the same thing locally.
So the perspective you should investigate is why that module isn’t being bundled by Vite.