Problem and possible solution to parsing error when uploading pre-compiled JS
I'm working on a client project and I like to use vite/vue.
I kept hitting problems wherein hubspot's own validators were throwing a bunch of parsing errors, and thus, not allowing me to publish what I KNOW is valid JS. (IMO this is a really bad feature and developers should be allowed to bypass it in favor of their own builds while still leveraging hubspots cache busting).
I devised a solution that seems to work perfectly, but I just want to be sure this doesn't introduce other downstream issues.