From c08ababf865c444ed1708809ee3762d478da6efb Mon Sep 17 00:00:00 2001 From: liting Date: Tue, 13 Jun 2023 00:57:33 +0800 Subject: [PATCH] fix: editing styles in ssr mode does not update the view in time --- src/output/moduleCompiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/moduleCompiler.ts b/src/output/moduleCompiler.ts index 6bb7ef64..47857731 100644 --- a/src/output/moduleCompiler.ts +++ b/src/output/moduleCompiler.ts @@ -66,7 +66,7 @@ function processFile( file.filename ) // append css - if (!isSSR && file.compiled.css) { + if (file.compiled.css) { js += `\nwindow.__css__ += ${JSON.stringify(file.compiled.css)}` } // crawl child imports