Have you reported that to the maintainers?
You probably need to do something more advanced like this solution – How to use `.js` instead of `.jsx` · vitejs/vite · Discussion #3448 · GitHub but the filter will need to change because you need to target your node_modules.