Skip to content

Commit 4fffc15

Browse files
fix: island path in generated output
1 parent ecf3798 commit 4fffc15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dev/dev_build_cache.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ import staticFileData from "./static-files.json" with { type: "json" };
365365
366366
// Import islands
367367
${
368-
islands.map((item) => `import * as ${item.name} from "${item.server}";`)
368+
islands
369+
.map((item) => {
370+
const spec = path.relative(outDir, item.server);
371+
return `import * as ${item.name} from "${spec}";`;
372+
})
369373
.join("\n")
370374
}
371375

0 commit comments

Comments
 (0)