mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
20 lines
452 B
TypeScript
20 lines
452 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
esbuild: {
|
|
jsx: "automatic",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
// Map JSX runtime imports to our custom runtime
|
|
"react/jsx-runtime": resolve(__dirname, "src/jsx-runtime.ts"),
|
|
"react/jsx-dev-runtime": resolve(__dirname, "src/jsx-runtime.ts"),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
},
|
|
});
|