Sfoglia il codice sorgente

fix(dashboard): Preserve Vite alias settings if set

Michael Bromley 8 mesi fa
parent
commit
d79ea77d72
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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'),
                 },
             };