Skip to content

Commit

Permalink
fix: resolve config plugin overload
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingertips18 committed Jan 18, 2025
1 parent 4401700 commit f4a17a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
import { defineConfig as testConfig } from "vitest/config";
import { defineConfig as viteConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vitest/config";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
const defineViteConfig = viteConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});

const defineTestConfig = testConfig({
test: {
globals: true,
environment: "jsdom",
},
});

export default {
...defineViteConfig,
...defineTestConfig,
};

0 comments on commit f4a17a3

Please sign in to comment.