import { Plugin } from 'vite' import { isCSS } from '../utils' export function devStyleSSRPlugin (rootDir: string): Plugin { return { name: 'nuxt:dev-style-ssr', apply: 'serve', enforce: 'post', transform (code, id) { if (!isCSS(id) || !code.includes('import.meta.hot')) { return } let moduleId = id if (moduleId.startsWith(rootDir)) { moduleId = moduleId.slice(rootDir.length) } // When dev `