From 043577a6400b8461baa2345e70b665f86da9692f Mon Sep 17 00:00:00 2001 From: Davide <43080019+edivados@users.noreply.github.com> Date: Wed, 6 Sep 2023 20:12:19 +0200 Subject: [PATCH] fix islands not hydrating when build on windows (#1046) --- packages/start/islands/vite-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]}); `