-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvite.config.ts
More file actions
32 lines (31 loc) · 859 Bytes
/
vite.config.ts
File metadata and controls
32 lines (31 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <reference types="vitest" />
import { resolve } from 'node:path'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite'
import Sitemap from 'vite-plugin-sitemap'
import tsconfigPaths from 'vite-tsconfig-paths'
// https://vitejs.dev/config/
/** @type {import('vite').UserConfig} */
export default defineConfig({
plugins: [
TanStackRouterVite({ target: 'react', autoCodeSplitting: true }),
react(),
tsconfigPaths(),
Sitemap({
hostname: 'https://dappbooster.dev',
}),
],
envPrefix: 'PUBLIC_',
resolve: {
alias: {
'@/src': resolve(__dirname, './src'),
'@packageJSON': resolve(__dirname, 'package.json'),
},
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./setupTests.ts'],
},
})