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:
@@ -10,6 +10,7 @@ export function clientEntryPlugin(options: ResolvedFreshViteConfig): Plugin {
|
||||
|
||||
return {
|
||||
name: "fresh:client-entry",
|
||||
sharedDuringBuild: true,
|
||||
config(_, env) {
|
||||
isDev = env.command === "serve";
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user