Vite bundler configuration in V4

tbh, i’d just change the file type to jsx but if you really want to do it, i’ve had better experience with the first answer in stack overflow