How to use “require” in a modern Javascript? Standard approaches not working
I have a react, vite project that is in typescript and of “type: module”, however, I need to call a one-of-a-kind file that is built with “require” syntax rather than “import”. I can’t update it so I have to get the two working together and I’ve been unable to.