fix(vite): nested islands not working (#3440)
This PR makes nested islands work. Problem was that only entry files have the `src` property in the vite manifest. For that we need to ensure that every island is an entry point. Fixes https://github.com/denoland/fresh/issues/3439
This commit is contained in:
@@ -110,7 +110,6 @@ export function fresh(config?: FreshViteConfig): Plugin[] {
|
||||
preserveEntrySignatures: "strict",
|
||||
input: {
|
||||
"client-entry": "fresh:client-entry",
|
||||
"client-snapshot": "fresh:client-snapshot",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -186,7 +185,7 @@ export function fresh(config?: FreshViteConfig): Plugin[] {
|
||||
patches(),
|
||||
...serverSnapshot(fConfig),
|
||||
clientEntryPlugin(fConfig),
|
||||
clientSnapshot(fConfig),
|
||||
...clientSnapshot(fConfig),
|
||||
buildIdPlugin(),
|
||||
...devServer(),
|
||||
prefresh({
|
||||
|
||||
Reference in New Issue
Block a user