I had the same issue with Vite, it caused me more problems than it solved so I moved back to Mix. The docs has a very simple how-to on this, and it works a charm: https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-vite-to-laravel-mix
FWIW, I don't think Vite has an "import" function like Mix does, but then again I had a bad first experience with it, and not touched it since so it may have improved since then.
I've worked on a few new projects since Vite was the standard, and all of them have been reverted to Mix, as it works for me and my team, without any issues, however if you want to stick to Vite, then this answer/reply is irrelevant, as I've only moved back to Mix from it!
tl;dr - Vite has always caused me problems, even on fresh installs, always reverted back to mix in the link above, and low and behold, everything worked flawlessly first time - unlike Vite...