fix(vite): route css import (#3438)

Fixes https://github.com/denoland/fresh/issues/3426
This commit is contained in:
Marvin Hagemeister
2025-09-15 13:20:07 +02:00
committed by GitHub
parent 016f94e28e
commit 3fb3cd9443
6 changed files with 72 additions and 4 deletions
@@ -81,7 +81,7 @@ export function devServer(): Plugin[] {
url.pathname !== "/__inspect" &&
res.headers.get("Content-Type")?.includes("text/html")
) {
const collected = await collectCss2(
const collected = await collectCss(
"fresh:client-entry",
server.environments.client,
);
@@ -132,7 +132,7 @@ export function devServer(): Plugin[] {
];
}
async function collectCss2(
async function collectCss(
id: string,
env: DevEnvironment,
) {