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:
@@ -41,6 +41,7 @@ export function checkImports(pluginOptions: CheckImportOptions): Plugin {
|
||||
|
||||
return {
|
||||
name: "fresh:check-imports",
|
||||
sharedDuringBuild: true,
|
||||
enforce: "pre",
|
||||
applyToEnvironment() {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user