From 98a74128552747a9a6d2696df0183f6abbd2c334 Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Sat, 7 Oct 2023 06:49:34 -0400 Subject: [PATCH] fix(web): dev mode repeatedly optimizing dependencies (#4379) * added glob for checking imports * prettier --- web/vite.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/vite.config.js b/web/vite.config.js index cc520062ad..2e9e32a03f 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -23,6 +23,9 @@ const config = { }, }, plugins: [sveltekit()], + optimizeDeps: { + entries: ['src/**/*.{svelte, ts, html}'], + }, }; export default config;