See https://github.com/wakujs/waku/pull/1493#issuecomment-3091351414 and https://github.com/vitejs/vite-plugin-react/pull/524