feat(vite): support remote islands (#3294)
This commit is contained in:
@@ -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"],
|
||||
})],
|
||||
});
|
||||
Reference in New Issue
Block a user