-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvite.config.mts
More file actions
executable file
·35 lines (32 loc) · 910 Bytes
/
Copy pathvite.config.mts
File metadata and controls
executable file
·35 lines (32 loc) · 910 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
33
34
35
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import checker from 'vite-plugin-checker'
import path from 'path'
import tsconfigPaths from 'vite-tsconfig-paths'
// import dns from 'dns'
// dns.setDefaultResultOrder('verbatim')
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
tsconfigPaths(),
checker({
typescript: true,
}),
// If you'd prefer to not run the checkers during unit testing with Vitest, you can alter the config based on that. Example:
// !process.env.VITEST ? checker({ typescript: true }) : undefined
],
server: {
host: 'localhost',
port: 3000,
},
resolve: {
alias: [
// {
// find: '~bootstrap',
// replacement: path.resolve(__dirname, 'node_modules/bootstrap'),
// },
{ find: '@', replacement: path.resolve(__dirname, 'src') },
],
},
})