Of course the correct way would be to force the dependencies to support es.
But vite has now become default for me as well for new projects.