fix(vite): serve css imported in islands (#3272)

Fixes https://github.com/denoland/fresh/issues/3271
This commit is contained in:
Marvin Hagemeister
2025-08-29 14:30:00 +02:00
committed by GitHub
parent b2c4f049bc
commit b41c151de3
14 changed files with 108 additions and 25 deletions
+2
View File
@@ -97,6 +97,7 @@ export class IslandPreparer {
mod: Record<string, unknown>,
chunkName: string,
modName: string,
css: string[],
) {
for (const [name, value] of Object.entries(mod)) {
if (typeof value !== "function") continue;
@@ -110,6 +111,7 @@ export class IslandPreparer {
file: chunkName,
fn,
name: uniqueName,
css,
});
}
}