Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
27 lines
584 B
TypeScript
27 lines
584 B
TypeScript
import react from "@vitejs/plugin-react"
|
|
import tsconfigPaths from "vite-tsconfig-paths"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
tsconfigPaths() as any,
|
|
react({
|
|
babel: {
|
|
plugins: [
|
|
[
|
|
"formatjs",
|
|
{
|
|
idInterpolationPattern: "[sha512:contenthash:base64:6]",
|
|
},
|
|
],
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./vitest-setup.ts"],
|
|
},
|
|
})
|