fix(vite): npm resolution + cjs + duplicated preact signals (#3211)
This commit is contained in:
@@ -172,6 +172,10 @@ export function serverSnapshot(options: ResolvedFreshViteConfig): Plugin[] {
|
||||
fsRoutesFiles: result.routes,
|
||||
islands: islandMods,
|
||||
writeSpecifier: (file) => {
|
||||
const def = islands.get(file);
|
||||
if (def) {
|
||||
return `fresh-island::${def.name}`;
|
||||
}
|
||||
return path.toFileUrl(file).href;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user