Skip to content

Commit 3b7e511

Browse files
committed
fix: css update in ssr mode
fix #91, close #92
1 parent 90e90c4 commit 3b7e511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/output/moduleCompiler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function processFile(
5151
seen: Set<File>,
5252
isSSR: boolean
5353
) {
54+
console.log(file.filename, isSSR)
5455
if (seen.has(file)) {
5556
return []
5657
}
@@ -78,7 +79,7 @@ function processFile(
7879
isSSR
7980
)
8081
// append css
81-
if (!isSSR && file.compiled.css) {
82+
if (file.compiled.css && !isSSR) {
8283
js += `\nwindow.__css__ += ${JSON.stringify(file.compiled.css)}`
8384
}
8485

0 commit comments

Comments
 (0)