feat(vite): support remote islands (#3294)

This commit is contained in:
Marvin Hagemeister
2025-09-01 12:11:08 +02:00
committed by GitHub
parent 54942987eb
commit 541bc6c6ca
11 changed files with 197 additions and 75 deletions
@@ -0,0 +1,5 @@
import { App, staticFiles } from "@fresh/core";
export const app = new App()
.use(staticFiles())
.fsRoutes();
@@ -0,0 +1,5 @@
import { RemoteIsland } from "@marvinh-test/fresh-island";
export default function Hello() {
return <RemoteIsland />;
}
@@ -0,0 +1,8 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
plugins: [fresh({
islandSpecifiers: ["@marvinh-test/fresh-island"],
})],
});