Browse Source

fix(dashboard): Preserve Vite alias settings if set

Michael Bromley 8 months ago
parent
commit
d79ea77d72
1 changed files with 1 additions and 0 deletions
  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.root = packageRoot;
             config.resolve = {
             config.resolve = {
                 alias: {
                 alias: {
+                    ...(config.resolve?.alias ?? {}),
                     '@': path.resolve(packageRoot, './src/lib'),
                     '@': path.resolve(packageRoot, './src/lib'),
                 },
                 },
             };
             };