Skip to content

Commit

Permalink
fix islands not hydrating when build on windows (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
edivados authored Sep 6, 2023
1 parent f351f42 commit 043577a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/start/islands/vite-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]});
`
Expand Down

0 comments on commit 043577a

Please sign in to comment.