From 6664b249cf010e3c71da79c976898ed65b913269 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 3 Jun 2026 04:11:17 +0300 Subject: [PATCH] bring this back? --- vite.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vite.config.js b/vite.config.js index 6ca25ddbd..a521fae49 100644 --- a/vite.config.js +++ b/vite.config.js @@ -165,6 +165,18 @@ export default defineConfig(async ({ mode, command }) => { }), ...(mode === 'test' ? [mswPlugin()] : []), ], + optimizeDeps: { + // For unknown reasons, during vitest, vite will re-optimize the following + // deps, causing the test to reload, so add them here so that it will not + // reload during tests + include: [ + 'custom-event-polyfill', + 'vue-i18n', + '@ungap/event-target', + 'body-scroll-lock', + '@kazvmoe-infra/pinch-zoom-element', + ], + }, css: { devSourcemap: true, transformer: 'lightningcss',