Browse Source

fix(web): dev mode repeatedly optimizing dependencies (#4379)

* added glob for checking imports

* prettier
Mert 1 year ago
parent
commit
98a7412855
1 changed files with 3 additions and 0 deletions
  1. 3 0
      web/vite.config.js

+ 3 - 0
web/vite.config.js

@@ -23,6 +23,9 @@ const config = {
     },
     },
   },
   },
   plugins: [sveltekit()],
   plugins: [sveltekit()],
+  optimizeDeps: {
+    entries: ['src/**/*.{svelte, ts, html}'],
+  },
 };
 };
 
 
 export default config;
 export default config;