Skip to content

Commit 75cdc7b

Browse files
committed
chore: add vitest macro plugin
1 parent 4a751b7 commit 75cdc7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import react from "@vitejs/plugin-react";
2+
import { envOnlyMacros } from "vite-env-only";
23
import tsconfigPaths from "vite-tsconfig-paths";
34
import { defineConfig } from "vitest/config";
45

56
export default defineConfig({
6-
plugins: [react(), tsconfigPaths()],
7+
plugins: [react(), tsconfigPaths(), envOnlyMacros()],
78
test: {
89
globals: true,
910
environment: "jsdom",

0 commit comments

Comments
 (0)