mirror of
https://github.com/gethomepage/homepage.git
synced 2026-10-11 22:39:57 +00:00
Chore: remove custom Vitest JSX esbuild config (#7234)
This commit is contained in:
@@ -3,11 +3,6 @@ import { fileURLToPath, URL } from "node:url";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
// Next.js handles JSX via SWC; Vitest uses Vite/esbuild, so enable the modern JSX runtime
|
||||
// to avoid requiring `import React from "react"` in every JSX file.
|
||||
esbuild: {
|
||||
jsx: "automatic",
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
components: fileURLToPath(new URL("./src/components", import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user