diff --git a/packages/start/islands/vite-plugin.js b/packages/start/islands/vite-plugin.js index 0a2288d3d..175afd6cc 100644 --- a/packages/start/islands/vite-plugin.js +++ b/packages/start/islands/vite-plugin.js @@ -37,7 +37,7 @@ export function islands() { import { ${f[1]} } from '${id.replace(/\?.*/, "?client")}'; window._$HY.island("${ - mode.command === "serve" ? `/@fs/${id}` : `${relative(process.cwd(), id)}` + mode.command === "serve" ? `/@fs/${id}` : `${normalizePath(relative(process.cwd(), id))}` }", ${f[1]}); `