File tree Expand file tree Collapse file tree
packages/start/src/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { type PluginOption , type ViteDevServer } from "vite" ;
2+ import { fileURLToPath } from "node:url" ;
23
34import { findStylesInModuleGraph } from "../server/collect-styles.ts" ;
45import { VIRTUAL_MODULES } from "./constants.ts" ;
@@ -18,12 +19,16 @@ export function manifest(start: SolidStartOptions): PluginOption {
1819 return `\0${ VIRTUAL_MODULES . clientViteManifest } ` ;
1920 if ( id === VIRTUAL_MODULES . getClientManifest )
2021 return this . resolve (
21- new URL ( "../server/manifest/client-manifest" , import . meta. url ) . pathname ,
22+ fileURLToPath ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) ) ,
2223 ) ;
2324 if ( id === VIRTUAL_MODULES . getManifest ) {
2425 return this . environment . config . consumer === "client"
25- ? this . resolve ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) . pathname )
26- : this . resolve ( new URL ( "../server/manifest/ssr-manifest" , import . meta. url ) . pathname ) ;
26+ ? this . resolve (
27+ fileURLToPath ( new URL ( "../server/manifest/client-manifest" , import . meta. url ) ) ,
28+ )
29+ : this . resolve (
30+ fileURLToPath ( new URL ( "../server/manifest/ssr-manifest" , import . meta. url ) ) ,
31+ ) ;
2732 }
2833 if ( id === VIRTUAL_MODULES . middleware ) {
2934 if ( start . middleware ) return await this . resolve ( start . middleware ) ;
You can’t perform that action at this time.
0 commit comments