Maybe this is because this plugin is disabled when the SSR is building. For SSR I use vite-ssr (https://github.com/frandiox/vite-ssr) 
Maybe this is because this plugin is disabled when the SSR is building. For SSR I use vite-ssr (https://github.com/frandiox/vite-ssr)