From 7bd74cb56f3c069a92567b0c2bf84d75c7201bc5 Mon Sep 17 00:00:00 2001 From: Anand Raman Date: Wed, 11 Mar 2026 11:18:57 -0500 Subject: [PATCH] update vite config with dedupe --- js-packages/web-console/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js-packages/web-console/vite.config.ts b/js-packages/web-console/vite.config.ts index 2d155832d2..13b4942b19 100644 --- a/js-packages/web-console/vite.config.ts +++ b/js-packages/web-console/vite.config.ts @@ -56,6 +56,12 @@ export default defineConfig(async () => { build: { minify: false }, + resolve: { + // When support-bundle-triage is symlinked into node_modules, vite dereferences + // the symlink and resolves its imports from the real path outside this workspace. + // dedupe forces these packages to always resolve from this workspace root. + dedupe: ['profiler-lib', 'triage-types', 'but-unzip'] + }, server: { watch: { ignored: ['**/dist/**', '**/node_modules/**', '**/.svelte-kit/**', '**/build/**']