11import fs from "node:fs" ;
22import path from "node:path" ;
33import { type PluginOption , type ViteDevServer , version as viteVersion } from "vite" ;
4+ import { fileURLToPath } from "node:url" ;
45
56import { findStylesInModuleGraph } from "../server/collect-styles.ts" ;
67import { VIRTUAL_MODULES } from "./constants.ts" ;
@@ -20,12 +21,16 @@ export function manifest(start: SolidStartOptions): PluginOption {
2021 return `\0${ VIRTUAL_MODULES . clientViteManifest } ` ;
2122 if ( id === VIRTUAL_MODULES . getClientManifest )
2223 return this . resolve (
23- new URL ( "../server/manifest/client-manifest" , import . meta. url ) . pathname ,
24+ fileURLToPath ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) ) ,
2425 ) ;
2526 if ( id === VIRTUAL_MODULES . getManifest ) {
2627 return this . environment . config . consumer === "client"
27- ? this . resolve ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) . pathname )
28- : this . resolve ( new URL ( "../server/manifest/ssr-manifest" , import . meta. url ) . pathname ) ;
28+ ? this . resolve (
29+ fileURLToPath ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) ) ,
30+ )
31+ : this . resolve (
32+ fileURLToPath ( new URL ( "../server/manifest/ssr-manifest" , import . meta. url ) ) ,
33+ ) ;
2934 }
3035 if ( id === VIRTUAL_MODULES . middleware ) {
3136 if ( start . middleware ) return await this . resolve ( start . middleware ) ;
0 commit comments