vite-plugin-hmr-follow set hmr protocol, hostname and port follow import.meta.url it will make some tools like frp will work well with hmr install pnpm add -D vite-plugin-hmr-follow