fix(vite): ensure plugins are only instantiated once (#3450)

This makes debugging a lot easier as by default vite instantiates
plugins multiple times for each environment.
This commit is contained in:
Marvin Hagemeister
2025-09-16 11:35:00 +02:00
committed by GitHub
parent b9d550fef8
commit 9a2098ecba
11 changed files with 16 additions and 0 deletions
@@ -32,6 +32,7 @@ export function serverEntryPlugin(
return {
name: "fresh:server_entry",
sharedDuringBuild: true,
applyToEnvironment(env) {
return env.name === "ssr";
},