Ver Fonte

fix(dashboard): Preserve Vite alias settings if set

Michael Bromley há 9 meses atrás
pai
commit
d79ea77d72
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/dashboard/vite/vite-plugin-config.ts

+ 1 - 0
packages/dashboard/vite/vite-plugin-config.ts

@@ -8,6 +8,7 @@ export function viteConfigPlugin({ packageRoot }: { packageRoot: string }): Plug
             config.root = packageRoot;
             config.resolve = {
                 alias: {
+                    ...(config.resolve?.alias ?? {}),
                     '@': path.resolve(packageRoot, './src/lib'),
                 },
             };