fix(vite): serve css imported in islands (#3272)
Fixes https://github.com/denoland/fresh/issues/3271
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user