It is removed probably as part of optimisation process. In production version, console.log is removed and in next optimisation pass arguments are removed because they are unused.
Also this could be useful https://github.com/vitejs/vite/discussions/7920