I found the answer here https://github.com/JLarky/bun-netlify (after taking half of a day to search)
Thanks for JLarky note:
When you run bun dev it will use bun just as a script runner, and your vite will actually be running in Node. But if you run bun --bun dev if will use Bun JavaScript runtime to run Vite.
My code run correctly with bun --bun run ./src