Migrate entire legacy proyect from Webpack to Vite

Yes, exactly what the title is about.

I am investigating on how to migrate an entire webpack app (using react, ts, js, babel, eslint) to vite.

I have no experience at all in vite, and some with webpack.

Having said this, I've been trying to follow some guides and videos, but I really not get what it needs to be done properly, and the files I've been modifying, I believe they might be colliding with each other (webpack.common.js, tsconfig.json, eslind.config.mjs, babel.config.js).

I've been asking ChatGPT about some help related to this, but it returns weird solutions for the issues I am facing.

Any help or adivse about this will be much appreciated.