I'm in the process of converting a project from webpack to vite and am struggling to dodge esbuild's mangling of class names. My expectation was that esbuild.keepNames would keep names, but that doesn't appear to be the case. Disabling minification entirely also doesn't change the behavior.
Any assistance would be appreciated. The config can be viewed here: https://github.com/stwlam/pf2e/blob/vite-build-test/vite.config.ts